PlayerInteriorChangedPayload
What playerInteriorChanged gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerInteriorChangedPayload = { player: PlayerSnapshot; fromInterior: number; toInterior: number };Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player, already in the new interior. |
fromInterior |
number |
The interior they were in: 0 outside, 1 to 18 an interior’s. |
toInterior |
number |
The interior they are in now. |
Related
Section titled “Related”playerInteriorChanged: the event