VirtualWorldChangeRequestPayload
What virtualWorldChangeRequest gets: the payload a handler receives.
Renamed in 0.28 from WorldChangeRequestPayload; see renamed names.
Definition
Section titled “Definition”type VirtualWorldChangeRequestPayload = { player: PlayerSnapshot | null; vehicleId: number | null; fromVirtualWorld: number; toVirtualWorld: number; reason: "script" | "reconnect";};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot | null |
The player who would go, or null for a vehicle moved on its own. |
vehicleId |
number | null |
The vehicle that would go with everyone in it, or null for a player on foot. |
fromVirtualWorld |
number |
The virtual world they are in. |
toVirtualWorld |
number |
The virtual world they would go to. |
reason |
"script" | "reconnect" |
"script": a gamemode’s call. "reconnect": a player came back within two minutes and would go back to their virtual world. |
Related
Section titled “Related”virtualWorldChangeRequest: the decision