SkeldJS
    Preparing search index...

    Class PlayerCheckSporeTriggerEvent<RoomType>

    Emitted when a player is attempting to trigger a spore, and is requesting the host to verify the attempt and actually trigger the spore. Only emitted if the client is the host.

    This event is useful if you want to prevent a player from triggering a spore before it happens. This event doesn't guarantee that the spore actually does get triggered, see PlayerTriggerSporesEvent to listen for that.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.checksporetrigger" = ...
    eventName: "player.checksporetrigger" = ...
    isValid: boolean

    Whether or not this spore trigger would normally be considered valid.

    message: undefined | CheckSporeTriggerMessage

    The message that this event originated from.

    mushroomId: number
    player: Player<RoomType>
    room: RoomType

    Accessors

    Methods

    • Change whether this spore trigger should be consider valid. If valid, this player will trigger the spore.

      Parameters

      • isValid: boolean

        Whether or not this spore trigger should be considered valid.

      Returns void