Facing
class Facing : Component()
constructor( target: Entity, turnWhileWalking: Boolean = true, instant: Boolean = false, fallbackAngle: Int? = null)
constructor( angle: Int, turnWhileWalking: Boolean = false, instant: Boolean = false)
constructor( square: Tile3, width: Int = 1, length: Int = 1, turnWhileWalking: Boolean = false, instant: Boolean = false)on_npc_option(Assets.Npc.hans.id, "Talk-to") { player -> target.replaceComponent(Facing(player)) player.replaceComponent(Facing(target)) target.speak("Yes?")}square
Section titled “square”var square: Tile3?landed
Section titled “landed”var landed: BooleantargetUuid
Section titled “targetUuid”var targetUuid: UUID?turnWhileWalking
Section titled “turnWhileWalking”var turnWhileWalking: Booleaninstant
Section titled “instant”var instant: BooleanfallbackAngle
Section titled “fallbackAngle”var fallbackAngle: Int?angleDirty
Section titled “angleDirty”var angleDirty: Booleantarget
Section titled “target”var target: Entity?faceAngle
Section titled “faceAngle”fun faceAngle(value: Int)wireValue
Section titled “wireValue”fun wireValue(self: Entity): IntonComponentRemovedFromEntity
Section titled “onComponentRemovedFromEntity”override fun onComponentRemovedFromEntity()NO_TARGET
Section titled “NO_TARGET”const val NO_TARGET: Int = 0xFFFFFFPLAYER_OFFSET
Section titled “PLAYER_OFFSET”const val PLAYER_OFFSET: Int = 0x10000faceEntityWire
Section titled “faceEntityWire”fun faceEntityWire(entity: Entity): Int