skeldjs
    Preparing search index...

    Class PlayerPetPetEvent<RoomType>

    Emitted when a player pets their pet or another player's pet.

    Due to technical limitations, the actual pet that is being petted is not available.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    canceled: boolean
    eventName: "player.pet" = ...
    message: undefined | PetMessage

    The message that this event originated from.

    petPos: Vector2
    player: Player<RoomType>

    The player that this event is for.

    playerPos: Vector2
    room: RoomType

    The room or client that the event came from.

    eventName: "player.pet" = ...

    Methods