Description
Spectator instance.
Syntax
[mode, [spectator, whitelistedSides, allowAi, allowFreeCamera, allow3PPCamera, showFocusInfo, showCameraButtons, showControlsHelper, showHeader, showLists]] call BIS_fnc_EGSpectator
Parameters:
mode: String - function mode, can be:- "Initialize"
- "Terminate" See the in-game Functions Viewer to see all the possible values. The following parameters are for "Initialize".
spectator: Object - playerwhitelistedSides: Array - (Optional, default: []) sides that can be spectatedallowAi: Boolean - (Optional, default: false) whether AI can be viewed by the spectatorallowFreeCamera: Boolean - (Optional, default: true) whether free camera mode is availableallow3PPCamera: Boolean - (Optional, default: true) whether 3rd Person camera mode is availableshowFocusInfo: Boolean - (Optional, default: true) whether to show Focus Info stats widgetshowCameraButtons: Boolean - (Optional, default: true) whether or not to show camera buttons widgetshowControlsHelper: Boolean - (Optional, default: true) whether to show controls helper widgetshowHeader: Boolean - (Optional, default: true) whether to show header widgetshowLists: Boolean - (Optional, default: true) whether to show entities / locations lists
Returns: Boolean - the return value depends on the mode. For "Initialize" and "Terminate" a Boolean indicating successful execution is returned.
Examples
Example 1
["Initialize", [player]] call BIS_fnc_EGSpectator;