Skip to content

CoreLayerData Resource

Namespace: SpaceUsurper

Inheritance: ObjectHotloadedData → CoreLayerData

Note

This resource type supports #include, so it can inherit properties from other resources of the same type.

Properties

Script Parameters

Note

These parameters are available for you to use while writing scripts inside of a resource of this type.

Name Description
all Applies to all pixels, for use in the unit form's pixels property.
Type: IEnumerable<PixelData>
bullet The bullet that last hit this pixelgroup.
Type: Bullet
bulletEntity Type: BulletEntity
campaignIndex The stage's index in the campaign.
Type: Int32
disconnectPixel The pixel that was destroyed to disconnect the latest chunk.
Type: PixelData
dt In-game time since the last update (1/60s), modified by timescale.
Type: Single
dtRaw In-game time since the last update (1/60s), unaffected by timescale changes.
Type: Single
force The latest force applied in a pixel collision, for use in onPixelDestroyed handler.
Type: Vector2
formNum The current form num of this unit (first form is number 0).
Type: Int32
hitDamage The amount of damage dealt the last time thix pixelgroup was hit.
Type: Single
hitDamageInt The above, but rounded to the nearest integer.
Type: Int32
hitNormal The surface normal of the last collision on this pixelgroup.
Type: Vector2
hitPixel The pixel that was hit during the last collision on this pixelgroup.
Type: PixelData
hitPos The position of the last collision on this pixelgroup (for use in onHit and onHitProtected handlers, and Unit's onPartHit and onPartHitByLaser handlers.
Type: Vector2
laser The laser that last hit this pixelgroup.
Type: Laser
normal The surface normal of the latest pixel collision, for use in onPixelHit and onPixelHitByLaser handlers.
Type: Vector2
numPixelsDisconnected The number of pixels in the latest chunk to be disconnected.
Type: Int32
part This pixelgroup (unit part).
Type: PixelGroup
partPos The position of the center of this pixelgroup.
Type: Vector2
pixel The pixel that was hit, for use in onPixelHit and onPixelHitByLaser handlers.
Type: PixelData
pixelNum The current pixel num, for use in the unit form's pixels property.
Type: Int32
player Closest Player to this pixelgroup.
Type: Player
players List of all players.
Type: Player[]
rand Type: Rand
recentlyDestroyedPixels The pixels that were most recently destroyed or disconnected.
Type: IEnumerable<PixelData>
ropeCurrLength Type: Single
ropeNumSprings Type: Int32
ropeSpringNum Type: Int32
ropeTotalLength Type: Single
stage The currently playing stage.
Type: GameStage
stageHeight The height of the arena.
Type: Single
stagePath The location of this stage's config data.
Type: String
stageSize The size of the arena.
Type: Vector2
stageTime The elapsed time for the current run.
Type: Single
stageWidth The width of the arena.
Type: Single
this This pixelgroup (unit part).
Type: PixelGroup
unit This unit.
Type: Unit
xMax The right boundary of the arena.
Type: Single
xMin The left boundary of the arena.
Type: Single
yMax The upper boundary of the arena.
Type: Single
yMin The lower boundary of the arena.
Type: Single
$version Alias of stage.GetScriptVersion(FILE)
Type: Int32
averageMoveInputPercent Alias of stage.PlayerHandler.AverageMoveInputPercent
Type: Single
averagePlayerPos Alias of stage.AveragePlayerPos
Type: Vector2
averagePlayerVel Alias of stage.AveragePlayerVel
Type: Vector2
averageShootInputPercent Alias of stage.PlayerHandler.AverageShootInputPercent
Type: Single
baseHp Alias of part.BaseHp
Type: Single
chunkCenterOfMass Alias of unit.ChunkCenterOfMassPos
Type: Vector2
core Alias of unit.CurrentCore
Type: PixelGroup
coreHpPercent Alias of unit.CoreHpPercent
Type: Single
corePos Alias of unit.CorePos
Type: Vector2
currentHp Alias of part.CurrentHp
Type: Single
debugToggle Alias of stage.MiscDebugToggle
Type: Boolean
difficulty Alias of stage.Difficulty
Type: Single
diffInt Alias of stage.DifficultyInt
Type: Int32
hpPercent Alias of part.HpPercent
Type: Single
implodeProgress Alias of unit.ImplodeProgress
Type: Single
isActive Alias of part.IsActive
Type: Boolean
isDocked Alias of stage.IsDocked
Type: Boolean
isGameOver Alias of stage.IsGameOver
Type: Boolean
isImploding Alias of unit.IsImploding
Type: Boolean
isPaused Alias of stage.IsPaused
Type: Boolean
isPlayerCollidingWithPixel Alias of player.IsCollidingWithPixel
Type: Boolean
isSwitch Alias of stage.IsSwitch
Type: Boolean
lastPatternTime Alias of part.LastPatternTime
Type: Single
maxPlayerInvulnPercent Alias of stage.MaxPlayerInvulnPercent
Type: Single
numActivePatterns Alias of part.NumActivePatterns
Type: Int32
numActivePrereqs Alias of part.NumActivePrereqs
Type: Int32
numAlivePlayers Alias of stage.AlivePlayerCount
Type: Int32
numChargingPatterns Alias of part.NumChargingPatterns
Type: Int32
numChunkPixels Alias of unit.NumChunkPixels
Type: Int32
numPixels Alias of part.NumPixels
Type: Int32
numPlayers Alias of stage.PlayerCount
Type: Int32
numShotPatterns Alias of stage.NumShotPatterns
Type: Int32
numSpawnedPatterns Alias of stage.NumSpawnedPatterns
Type: Int32
numSpeechBubbles Alias of unit.NumSpeechBubbles
Type: Int32
numTimesDestroyed Alias of part.NumTimesDestroyed
Type: Int32
numTimesHit Alias of part.NumTimesHit
Type: Int32
numTimesHitProtected Alias of part.NumTimesHitProtected
Type: Int32
numUnits Alias of stage.UnitHandler.NumActiveUnits
Type: Int32
partNum Alias of part.PartNum
Type: Int32
PI Alias of 3.141593
Type: Single
playerAimAngle Alias of player.Input.AimAngle
Type: Single
playerAimDir Alias of player.Input.AimDirection
Type: Vector2
playerAimInputPercent Alias of player.Input.AimInputPercent
Type: Single
playerAimVector Alias of player.Input.AimVector
Type: Vector2
playerBodyColorA Alias of player.Body.BodyColorA
Type: Color
playerBodyColorB Alias of player.Body.BodyColorB
Type: Color
playerBodyColorC Alias of player.Body.BodyColorC
Type: Color
playerBodyOpacity Alias of player.Body.BodyOpacity
Type: Single
playerBodySize Alias of player.Body.Size
Type: Vector2
playerBodyWidthMods Alias of player.Body.WidthMods
Type: Vector2
playerBoostPercent Alias of player.BoostPercent
Type: Single
playerBrakeInputPercent Alias of player.Input.BrakeInputPercent
Type: Single
playerBrakePercent Alias of player.Body.BrakePercent
Type: Single
playerDamageBonus Alias of player.DamageBonus
Type: Single
playerDeathPercent Alias of player.DeathPercent
Type: Single
playerFacingAngle Alias of player.Body.FacingAngle
Type: Single
playerFacingDir Alias of player.Body.FacingDirection
Type: Vector2
playerGrazePercent Alias of player.Health.GrazePercent
Type: Single
playerGrazePos Alias of player.Health.GrazePos
Type: Vector2
playerGunAngle Alias of player.GunHandler.AimAngle
Type: Single
playerGunDir Alias of player.GunHandler.AimDirection
Type: Vector2
playerGunPos Alias of player.GunHandler.Position
Type: Vector2
playerGunSize Alias of player.GunHandler.Size
Type: Vector2
playerGunWidthMods Alias of player.GunHandler.WidthMods
Type: Vector2
playerIgnoreBulletDamage Alias of player.IgnoreBulletDamage
Type: Boolean
playerIgnoreLaserDamage Alias of player.IgnoreLaserDamage
Type: Boolean
playerInvulnPercent Alias of player.Health.InvulnPercent
Type: Single
playerIsDead Alias of player.IsDead
Type: Boolean
playerIsDying Alias of player.IsDying
Type: Boolean
playerIsIntangible Alias of player.IsIntangible
Type: Boolean
playerIsInvuln Alias of player.Health.IsInvulnerable
Type: Boolean
playerLastHitBullet Alias of player.Health.BulletDamageSource
Type: DataPath<BulletData>
playerLastHitSourceIsBullet Alias of player.Health.PlayerLastDamageSourceIsBullet
Type: Boolean
playerLastHitUnit Alias of player.Health.UnitDamageSource
Type: DataPath<UnitData>
playerLastPos Alias of player.Movement.LastPos
Type: Vector2
playerLastStatusActivated Alias of player.StatusEffectHandler.LastStatusActivatedPath
Type: DataPath<StatusEffectData>
playerLastStatusLevelChangedAmount Alias of player.StatusEffectHandler.LastStatusLevelChangedAmount
Type: Int32
playerLastStatusLevelChangedPath Alias of player.StatusEffectHandler.LastStatusLevelChangedPath
Type: DataPath<StatusEffectData>
playerMoveDelta Alias of player.Movement.MoveDelta
Type: Vector2
playerMoveInputPercent Alias of player.Input.MoveInputPercent
Type: Single
playerMoveVector Alias of player.Input.MoveVector
Type: Vector2
playerNumTimesPreventedDeath Alias of player.Health.NumTimesPreventedDeath
Type: Int32
playerPixelLastCollisionTime Alias of player.LastPixelCollisionTime
Type: Single
playerPos Alias of player.Movement.Position
Type: Vector2
playerRecoilPercent Alias of player.GunHandler.MaxRecoilPercent
Type: Single
playerSelectedStatusPath Alias of player.StatusEffectHandler.SelectedStatusPath
Type: DataPath<StatusEffectData>
playerShootInputPercent Alias of player.Input.ShootInputPercent
Type: Single
playerVel Alias of player.Movement.Velocity
Type: Vector2
playerVelPercent Alias of player.Movement.VelocityPercent
Type: Single
rawStageTime Alias of stage.RawFixedElapsedTime
Type: Single
song Alias of stage.SongHandler.Song
Type: Song
stageBaseBgColor Alias of stage.BaseBgColor
Type: Color
stageBgColor Alias of stage.BgColor
Type: Color
stageBounds Alias of stage.Bounds
Type: Rect
stageCenter Alias of stage.BoundsCenter
Type: Vector2
stageProgress Alias of stage.ScoringHandler.Progress
Type: Single
stageState Alias of stage.BehaviourHandler.CurrentState
Type: String
timeScale Alias of stage.TimeScaleHandler.CurrentTimeScale
Type: Single
timeSinceCoreHit Alias of unit.TimeSinceCoreHit
Type: Single
totalNumPixels Alias of unit.TotalPixelCount
Type: Int32
unitAnimIsPlaying Alias of unit.IsAnimPlaying
Type: Boolean
unitAnimName Alias of unit.CurrAnimName
Type: String
unitBehaviourDelay Alias of unit.BehaviourDelay
Type: Single
unitDataPath Alias of unit.DataPath
Type: DataPath<UnitData>
unitDestroyedPartCount Alias of unit.NumDestroyedParts
Type: Int32
unitDestroyedPixelCount Alias of unit.NumDestroyedPixels
Type: Int32
unitFacingAngle Alias of unit.FacingAngle
Type: Rotation
unitFacingDir Alias of unit.FacingVector
Type: Vector2
unitFormTime Alias of unit.ElapsedFormTime
Type: Single
unitFrameNum Alias of unit.CurrPxcFrameNum
Type: Int32
unitHasFullyEnteredBounds Alias of unit.HasFullyEnteredBounds
Type: Boolean
unitHasFullyEnteredLevel Alias of unit.HasFullyEnteredLevel
Type: Boolean
unitHidePercent Alias of unit.HidePercent
Type: Single
unitIsFullyInBounds Alias of unit.IsFullyInBounds
Type: Boolean
unitIsFullyInLevel Alias of unit.IsFullyInLevel
Type: Boolean
unitIsHidden Alias of unit.IsHidden
Type: Boolean
unitIsHiding Alias of unit.IsHiding
Type: Boolean
unitIsPartiallyInBounds Alias of unit.IsPartiallyInBounds
Type: Boolean
unitIsPartiallyInLevel Alias of unit.IsPartiallyInLevel
Type: Boolean
unitIsRevealing Alias of unit.IsRevealing
Type: Boolean
unitIsRotating Alias of unit.IsRotatingToFace
Type: Boolean
unitIsSpawning Alias of unit.IsSpawning
Type: Boolean
unitLastPos Alias of unit.Movement.LastPos
Type: Vector2
unitMoveDelta Alias of unit.Movement.MoveDelta
Type: Vector2
unitNumShotPatterns Alias of unit.NumShotPatterns
Type: Int32
unitNumShotPatternsThisForm Alias of unit.NumShotPatternsThisForm
Type: Int32
unitNumType Alias of unit.UnitNumType
Type: Int32
unitOutOfBoundsPercent Alias of unit.OutOfBoundsPercent
Type: Single
unitPartCount Alias of unit.NumActiveParts
Type: Int32
unitPixelCount Alias of unit.ExistingPixelCount
Type: Int32
unitPixelPercent Alias of unit.ExistingPixelPercent
Type: Single
unitPos Alias of unit.Movement.Position
Type: Vector2
unitRadius Alias of unit.Radius
Type: Single
unitSpawnPercent Alias of unit.SpawnPercent
Type: Single
unitSpawnPos Alias of unit.SpawnPos
Type: Vector2
unitState Alias of unit.CurrentState
Type: String
unitTime Alias of unit.ElapsedTime
Type: Single
unitTimeScale Alias of unit.TimeScale
Type: Single
unitVel Alias of unit.Movement.Velocity
Type: Vector2
unitVelPercent Alias of unit.Movement.VelocityPercent
Type: Single