{"name":"BIS_fnc_EGSpectator","title":"BIS fnc EGSpectator","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EGSpectator","revid":348958,"updated":"2023-11-08T14:45:39Z","groups":["Spectator"],"status":"ok","games":{"arma3":"1.54"},"since":"arma3 1.54","arma3_since":"1.54","description":"Spectator instance.","syntaxes":[{"syntax":"[mode, [spectator, whitelistedSides, allowAi, allowFreeCamera, allow3PPCamera, showFocusInfo, showCameraButtons, showControlsHelper, showHeader, showLists]] call BIS_fnc_EGSpectator","params":[{"name":"mode","type":"String","description":"function mode, can be:\n\n- \"Initialize\"\n- \"Terminate\"\n\n**See the in-game Functions Viewer to see all the possible values. The following parameters are for \"Initialize\".**","type_expr":"String"},{"name":"spectator","type":"Object","description":"player","type_expr":"Object"},{"name":"whitelistedSides","type":"Array","optional":true,"default":"[]","description":"sides that can be spectated","type_expr":"Array","text":"whitelistedSides: Array - (Optional, default: []) sides that can be spectated"},{"name":"allowAi","type":"Boolean","optional":true,"default":"false","description":"whether AI can be viewed by the spectator","type_expr":"Boolean","text":"allowAi: Boolean - (Optional, default: false) whether AI can be viewed by the spectator"},{"name":"allowFreeCamera","type":"Boolean","optional":true,"default":"true","description":"whether free camera mode is available","type_expr":"Boolean","text":"allowFreeCamera: Boolean - (Optional, default: true) whether free camera mode is available"},{"name":"allow3PPCamera","type":"Boolean","optional":true,"default":"true","description":"whether 3rd Person camera mode is available","type_expr":"Boolean","text":"allow3PPCamera: Boolean - (Optional, default: true) whether 3rd Person camera mode is available"},{"name":"showFocusInfo","type":"Boolean","optional":true,"default":"true","description":"whether to show Focus Info stats widget","type_expr":"Boolean","text":"showFocusInfo: Boolean - (Optional, default: true) whether to show Focus Info stats widget"},{"name":"showCameraButtons","type":"Boolean","optional":true,"default":"true","description":"whether or not to show camera buttons widget","type_expr":"Boolean","text":"showCameraButtons: Boolean - (Optional, default: true) whether or not to show camera buttons widget"},{"name":"showControlsHelper","type":"Boolean","optional":true,"default":"true","description":"whether to show controls helper widget","type_expr":"Boolean","text":"showControlsHelper: Boolean - (Optional, default: true) whether to show controls helper widget"},{"name":"showHeader","type":"Boolean","optional":true,"default":"true","description":"whether to show header widget","type_expr":"Boolean","text":"showHeader: Boolean - (Optional, default: true) whether to show header widget"},{"name":"showLists","type":"Boolean","optional":true,"default":"true","description":"whether to show entities / locations lists","type_expr":"Boolean","text":"showLists: Boolean - (Optional, default: true) whether to show entities / locations lists"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"the return value depends on the mode. For \"Initialize\" and \"Terminate\" a Boolean indicating successful execution is returned."}}],"examples":[{"code":["[\"Initialize\", [player]] call BIS_fnc_EGSpectator;"]}],"see_also":["Arma 3: End Game Spectator Mode"]}