Skip to content

Bullet Class

Namespace: SpaceUsurper

A projectile produced by a BulletPattern, which can optionally collide with a Player or a Unit.

Inheritance: Object → Bullet

Note

This class has a corresponding JSON resource type: BulletData

Properties

Name Description
AliasDir Returns the current redirect direction, or the current move direction if the bullet has not been redirected.
AliasFacingSpeed The bullet's current facingSpeed.
AliasKeyNum Which keyframe the bullet is currently on (first keyframe is number 0).
AliasKeyProgress The percent progress through the bullet's current frame (0-1).
AliasLifetimeProgress The percent progress through the bullet's total lifetime (0-1).
AliasMoveAngle The current move angle of the bullet (which way it's moving).
AliasNumKeyLoops How many times the bullet has reached the end of its keyframes and looped.
AliasOpacity The bullet's current opacity.
AliasPatternPos The position of the spawning pattern, if it exists.
AliasRemoteControlPos The position of the target unit (the unit this bullet is trying to remote control).
AliasRotationSpeed The bullet's current rotationSpeed.
AliasSizeMultiplier The bullet's sizeMultiplier, set by the pattern.
BulletNum
CantBeAffected
CantBeDestroyed
CantBeIgnored
ChildBullet
CollideWithPixels
CollideWithPlayer
CrossDistance
CrossWidth
CurrDamageAvailable
CurrForceStrength
CurrStatusEffectData
DataPath
ElapsedFrameTime
ElapsedLifetime
FacingAngle
FacingDirection
FanNum
FloatVar
HasParentPattern
IgnorePlayerCollisionForKeyframe
IgnorePxcCollisionForKeyframe
ImpulseVelocity
IntVar
IsActive
IsAnchored
IsDespawning
IsFinishedAdvancingKeyframes
IsPlayerBullet
IsPositive
IsRedirected
IsStatusVisualBullet
LastPos
Length
Level
LoopNum
Mass
MoveDir
MoveMode
NumBullets
NumShotPatternsConstant
ParallelNum
ParentBullet
ParentPattern
PartDamageFactor
PatternNum
PlayerCollideable
PosA
PosB
Position Current position of the bullet.
PxcCollideable
PxcDamageDealt
Radius
RectSize
RectWidthMods
ShouldOverrideStatus
SourcePlayer If this is a player bullet, who shot it?
SpawnPos
StartTime
StatusLevel
TargetPlayer
TimeScale
TotalLifetime
TotalPxcDamage
VectorVar
Velocity

Methods

Name Description
AddBullet(DataPath<BulletData>, Vector2, Single, Single, Int32)
AddForce(Vector2)
AddImpulseVelocity(Vector2)
AddPattern(DataPath<PatternData>, Single, MirrorMode, Single, Int32, Player)
AddText(String, Color, Color, FloatingTextFont, Vector2, Color, Vector2, String, Single, Single, Single, Single, BulletTextAlignment, Boolean, Single, Nullable<DepthLevel>)
AddTimeScale(Single, Single, EasingType)
AddVelocity(Vector2)
AffectTouchingBullets(ActionList, ParameterCollection, Boolean, Boolean, Boolean, Boolean, BulletQueryData)
AffectTouchingUnits(ActionList, ParameterCollection, Boolean)
ClearChildPatterns()
ClearRedirect()
ClearTargetPlayer()
CreateBulletImpactEffect(Vector2, Vector2, Single)
DamagePlayer()
DamagePlayer(Player)
Despawn()
DespawnText(Vector2, Single, EasingType)
Flash(Color, Single, EasingType, Single, Single, Boolean)
Get(String, T)
GetTextSize()
GetVolleyBullet(Int32)
HitPlayer()
HitPlayer(Player)
Impact(Vector2, Vector2)
IsTouchingPlayer()
IsTouchingPlayer(Player)
OverrideColorBlinkTime(Single)
OverrideColors(Color, Color, Color, Color, Color, Color)
OverrideColors(Color, Color, Color)
Redirect(Vector2)
Reflect(Unit, Vector2, Vector2, Boolean)
RemoveChildPattern(DataPath<PatternData>)
SetBounds(Rect)
SetDespawnStyle(DespawnStyle)
SetDespawnTime(Single)
SetFacingAngle(Single)
SetFacingDirection(Vector2)
SetFloatVar(Single)
SetImpulseVelocity(Vector2)
SetIntVar(Int32)
SetKeyframe(Int32) Sets the bullet keyframe immediately.
SetKeyframe_Legacy(Int32)
SetParentBullet(Bullet)
SetPosB(Vector2)
SetPosition(Vector2)
SetStatusLevel(Int32)
SetTargetPlayer(Player)
SetTextAlignment(BulletTextAlignment)
SetTextCharacterSpacing(Single)
SetTextColor(Color)
SetTextColorA(Color)
SetTextColorB(Color)
SetTextColorBlinkTime(Single)
SetTextLerpSpeed(Single)
SetTextLineSpacing(Single)
SetTextMessage(String)
SetTextNumChars(Int32)
SetTextOffset(Vector2)
SetTextOpacity(Single)
SetTextOutlineColor(Color)
SetTextOutlineWidth(Single)
SetTextScale(Vector2)
SetTextSize(Single)
SetTextStartChars(Int32)
SetTextWordSpacing(Single)
SetVectorVar(Vector2)
SetVelocity(Vector2)
Transform(DataPath<BulletData>, Single, DataPath<StatusEffectData>[])
UpdateTargetPlayer()