skeldjs
    Preparing search index...

    Class PlayerShapeshiftEvent<RoomType>

    Emitted when a player (who is a shapeshifter) shapeshifts into another player.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    doAnimation: boolean

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

    duration: number

    The duration, in seconds, for how long the player is shapeshifted for.

    eventName: "player.shapeshift" = ...
    message: undefined | ProtectPlayerMessage

    The message that this event originated from.

    player: Player<RoomType>

    The player that this event is for.

    reverted: boolean
    room: RoomType

    The room or client that the event came from.

    target: Player<RoomType>

    The target that the player shapeshifted into.

    eventName: "player.shapeshift" = ...

    Accessors

    Methods

    • 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