SpectatorManager
Summary
Methods
| Method | Returns |
|---|---|
| GetSpectating() | bool |
| SetSpectating(spectating: bool) | void |
| SpectatePlayer(player: Player, firstPerson: bool) | void |
| GetSpectatedPlayer() | Player | nil |
| GetCameraMode() | SpectatorCameraMode |
| SetCameraMode(mode: SpectatorCameraMode) | void |
| GetFreecameraTransform() | LinearTransform | nil |
| SetFreecameraTransform(transform: LinearTransform) | void |
Methods
GetSpectating
GetSpectating(): bool
Returns
| Type | Description |
|---|---|
| bool |
SetSpectating
SetSpectating(spectating: bool)
Parameters
| Name | Type | Description |
|---|---|---|
| spectating | bool |
SpectatePlayer
SpectatePlayer(player: Player, firstPerson: bool)
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | |
| firstPerson | bool |
GetSpectatedPlayer
GetSpectatedPlayer(): Player | nil
Returns
| Type | Description |
|---|---|
| Player | nil |
GetCameraMode
GetCameraMode(): SpectatorCameraMode
Returns
| Type | Description |
|---|---|
| SpectatorCameraMode |
SetCameraMode
SetCameraMode(mode: SpectatorCameraMode)
Parameters
| Name | Type | Description |
|---|---|---|
| mode | SpectatorCameraMode |
GetFreecameraTransform
GetFreecameraTransform(): LinearTransform | nil
Returns
| Type | Description |
|---|---|
| LinearTransform | nil |
SetFreecameraTransform
SetFreecameraTransform(transform: LinearTransform)
Parameters
| Name | Type | Description |
|---|---|---|
| transform | LinearTransform |
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)