PlayerViewEndReason
Why a camera view or spectating ended, in playerViewEnded’s endReason.
Definition
Section titled “Definition”type PlayerViewEndReason = "script" | "replaced" | "targetRemoved" | "targetUnavailable" | "targetDisconnected" | "interiorDenied" | "virtualWorldChanged" | "resourceUnavailable" | "gamemodeStopped" | "gamemodeReloaded" | "invalidViewState" | "commandTimedOut";Values
Section titled “Values”| Value | Meaning |
|---|---|
"script" |
Your gamemode ended it: camera.reset or players.stopSpectating. |
"replaced" |
Your gamemode gave the player another view. |
"targetRemoved" |
The target is gone: a vehicle or object destroyed. |
"targetUnavailable" |
The target cannot be followed any more. |
"targetDisconnected" |
The player they watched left, and playerSpectateRequest gave no one else. |
"interiorDenied" |
The target went into or out of an interior, and playerSpectateRequest refused to follow. Was "areaDenied" before 0.28. |
"virtualWorldChanged" |
The player or their target went to another virtual world. Was "worldChanged" before 0.28. |
"resourceUnavailable" |
The player’s game could not keep loading what is around the target. |
"gamemodeStopped", "gamemodeReloaded" |
Your gamemode stopped or reloaded. |
"invalidViewState" |
The server could not keep the view, and put the player back on foot. |
"commandTimedOut" |
The player’s game did not answer in time, and the server put them back. |