Skip to content

Unit Class

Namespace: SpaceUsurper

Inheritance: Object → Unit

Note

This class has a corresponding JSON resource type: UnitData

Properties

Methods

Name Description
AddBehaviourDelay(Single)
AddForce(Vector2)
AddPattern(DataPath<PatternData>, Vector2, Single, Boolean, Boolean, Single, Int32, Int32, Player)
AddRotationForce(Vector2, Vector2, Single)
AddStatus(DataPath<UnitStatusEffectData>, Int32)
AddTimeScale(Single, Single, EasingType)
AddVelocity(Vector2)
AdjustPartCounter(String, Int32)
AdjustTargetPlayerUpdateTimer(Single)
AimTowards(Single, Single)
CalculateBaseFormProgress(Int32)
CancelRotateToFace()
ChargeLines(PixelGroup, Color, Color, Single, Single, Single, EasingType, Single, Single, EasingType, EasingType, Single, Single, EasingType, EasingType, Single, Single, EasingType, Single, Single, Single, EasingType, Int32, Boolean, String)
ChargePattern(DataPath<PatternData>[], Int32, String, PartSelectMode, Single, MirrorMode, FlipPatternMode, Single, ScriptFunc<Vector2>, Single, Int32, Int32, Single, Int32, Int32, List<DataPath<StatusEffectData>>, Single, Player)
ChargePattern(DataPath<PatternData>, String, PartSelectMode, Single, MirrorMode, FlipPatternMode, Single, ScriptFunc<Vector2>, Single, Int32, Int32, Single, Int32, Int32, List<DataPath<StatusEffectData>>, Single, Player)
ClearAccelVectorFunc()
ClearAnimQueue()
ClearAutoRotateSpeedFunc()
ClearBehaviourDelay()
ClearCoreLookFunc()
ClearCoreLookSpeed()
ClearFacingLerpSpeedFunc()
ClearFacingModeFunc()
ClearMovementModeFunc()
ClearPosLerpSpeedFunc()
ClearTargetFacingAngleFunc()
ClearTargetPlayer()
ClearTargetPosFunc()
DespawnAddedPatterns()
DestroyPart(String)
DestroyPixels(String, ScriptFunc<Int32>)
Disable()
DisconnectPixelChunk(IntRange)
DisconnectPixels(String)
DoesPartExist(String) Returns true if any parts of the specified type exist.
DoesPixelExist(Int32)
Flash(Color, Single, EasingType, Single)
FlashEdgePixels(Color, Single, String, EasingType, Boolean, Boolean)
FlashLine(Vector2, Vector2, Color, Color, Single, EasingType, Single, EasingType, Boolean, String)
FlashLineSequence(Int32[], Color, Int32[], Boolean, Boolean, Single, Single, Boolean, Boolean, Boolean, Single, Single, String)
FlashLineWorldPos(Vector2, Vector2, Color, Color, Single, EasingType, Single, EasingType, Boolean, String)
FlashPart(String, Color, Single, Single, EasingType, CoreColorType)
FlashPixel(Int32, Color, Single, EasingType)
FlashPixels(IntRange, Color, Single, EasingType)
FlashRandomPixel(Color, Single, EasingType)
ForcePixelConnectionCheck()
Get(String, T)
GetClosestPlayer()
GetLaserAngle(String, Int32)
GetNumParts(String, Boolean)
GetNumReqs(String, Boolean)
GetPart(String, Int32)
GetPartPos(String, Int32)
GetPixel(Int32)
GetPixel(Vector2, Boolean)
GetRandomPixel()
GetRandomPixelLegacy()
GetRandomPlayerWeighted()
GetStatus(DataPath<UnitStatusEffectData>)
GetStatusLevel(DataPath<UnitStatusEffectData>)
HealParts(String, Single)
HealPixels(String, Single)
Implode()
Look(String, Vector2, Single, Single, Single, Single)
Nudge(Vector2, Single, EasingType)
PixelBoundsContainsPos(Vector2)
PlayAnim(String, Boolean, Boolean, LoopMode, EasingType, Boolean)
Raycast(Vector2, Vector2, Boolean, Boolean)
RefreshEdgePixelColor(String, Boolean, Boolean)
RemovePixels(IntRange)
RemoveSpeechBubbles(String, PartSelectMode, Player)
RemoveSpeechBubbles(Player)
RepulsionCirclesContainPos(Vector2)
Respawn(Single, Single, Int32) Respawn pixels.
Respawn(String, Single, Single, Int32) Respawn pixels of a certain category.
Rotate180Degrees(Single, EasingType)
RotateClockwise(Single, EasingType)
RotateClockwiseOnlyDiagonal(Single, EasingType)
RotateCounterClockwise(Single, EasingType)
RotateCounterClockwiseOnlyDiagonal(Single, EasingType)
RotateToFace(Direction, Single, EasingType)
ScriptFuncParamTest(ScriptFunc<String>)
SelectPart(String, PartSelectMode)
SetAccelVectorFunc(ScriptFunc<Vector2>)
SetAnimSpeed(Single)
SetAutoRotateSpeedFunc(ScriptFunc<Single>)
SetAvoidUnitStrength(Single)
SetBehaviour(DataPath<FsmData>, String)
SetBehaviourDelay(Single)
SetColorBlinkTimes(String, Single, Single, EasingType)
SetCoreLookFunc(ScriptFunc<Vector2>)
SetCoreLookSpeed(Single)
SetDormant(Boolean)
SetEdgePixelColor(Color, String, Boolean, Boolean)
SetEdgePixelOriginalType(Boolean, Boolean)
SetEdgePixelType(PixelType, Boolean, Boolean)
SetFacingAngle(Single, Boolean)
SetFacingDirection(Direction)
SetFacingLerpSpeedFunc(ScriptFunc<Single>)
SetFacingModeFunc(ScriptFunc<UnitFacingMode>)
SetHidden(Boolean, Single)
SetInvulnerable(Boolean)
SetLaserActive(String, Boolean)
SetLaserAimSpeed(String, Single)
SetLaserAnimSpeeds(String, Single, Single)
SetLaserAutoRotate(String, Boolean)
SetLaserAutoRotateSpeed(String, Single)
SetLaserDangerous(String, Boolean)
SetLaserDps(String, Single)
SetLaserImpactPatternSizeMultiplier(String, Single)
SetLaserLength(String, Single)
SetLaserLengthLerpSpeed(String, Single)
SetLaserOffColors(String, Color, Color)
SetLaserOnColors(String, Color, Color)
SetLaserTargetAngle(String, Single)
SetLaserWidths(String, Single, Single, Single, Single)
SetLookTarget(String, Vector2, Single)
SetMovementModeFunc(ScriptFunc<UnitMovementMode>)
SetOpacity(Single)
SetPixelColors(IntRange, Color)
SetPosition(Vector2)
SetPosLerpSpeedFunc(ScriptFunc<Single>)
SetRepelUnitStrength(Single)
SetRotationForce(Single)
SetScale(Vector2)
SetShaderDepthX(Single)
SetShaderDepthY(Single)
SetShaderFreqX(Single)
SetShaderFreqY(Single)
SetShaderIntensity(Single)
SetShaderSpeedX(Single)
SetShaderSpeedY(Single)
SetShaderTimeFactor1(Single)
SetShaderTimeFactor2(Single)
SetShaderTimeFactor3(Single)
SetState(String)
SetStayInBoundsStrength(Single)
SetStayInBoundsStrength(Single, Single, Single, Single)
SetTargetFacingAngleFunc(ScriptFunc<Single>)
SetTargetPlayer(Player)
SetTargetPosFunc(ScriptFunc<Vector2>)
SetVelocity(Vector2)
Shake(Single, Single, EasingType)
SpawnBubble(LocalizedString, String, PartSelectMode, Single, Func<Color>, Func<Color>, Func<Single>, Func<Color>, FloatingTextFont, Int32)
SpawnNextForm()
StopChargingPatterns(String, String)
StopPatterns(String, String)
StopRespawning(String)
TintPixels(IntRange, Color)
ToggleHidden(Single)
ToggleLaserActive(String)
ToggleLaserDangerous(String)
Twist(Single, Single, EasingType)
TwistLegacy(Single, Single, EasingType)
UpdateTargetPlayer()