Class PlayerRevertShapeshiftEvent<RoomType>

Emitted when a player (who is a shapeshifter) shapeshifts back into their own form after being shapeshifted as another play for some duration of time.

Use PlayerShapeshiftEvent to listen for when a player actually shapeshifts initially.

Type Parameters

Hierarchy

  • RevertableEvent
    • PlayerRevertShapeshiftEvent

Implements

Properties

eventName: "player.revertshapeshift"
doAnimation: boolean

Whether or not to show an animation of the player shapeshifting.

eventName: "player.revertshapeshift"
message: undefined | ProtectPlayerMessage

The message that this event originated from.

player: PlayerData<RoomType>

The player that this event is for.

reverted: boolean
room: RoomType

The room or client that the event came from.

target: PlayerData<RoomType>

The player that the player shapeshifted from.

Accessors

  • get alteredDoAnimation(): boolean
  • Whether or not to show an animation of the player shapeshifting instead, if altered.

    Returns boolean

Constructors

Methods

  • Returns void

  • Change whether or not an animation will show the player shapeshifting.

    Parameters

    • doAnimation: boolean

      Whether or not to do show an animation of the player shape shifting.

    Returns void

Generated using TypeDoc