Skip to content

PlayerInteriorChangedPayload

What playerInteriorChanged gets: the payload a handler receives.

type PlayerInteriorChangedPayload = { player: PlayerSnapshot; fromInterior: number; toInterior: number };
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.