{"name":"BIS_fnc_EGSpectator","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.54"}],"since":{"game":"arma3","name":"Arma 3","version":"1.54"},"arma3_since":"1.54","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Spectator instance.","syntaxes":[{"syntax":"[mode, [spectator, whitelistedSides, allowAi, allowFreeCamera, allow3PPCamera, showFocusInfo, showCameraButtons, showControlsHelper, showHeader, showLists]] call BIS_fnc_EGSpectator","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"String","optional":false,"default":null,"description":"function mode, can be:\n- \"Initialize\"\n- \"Terminate\"\n**See the in-game Functions Viewer to see all the possible values. The following parameters are for \"Initialize\".**","types":["String"],"since":null,"text":"mode: String - function mode, can be:\n- \"Initialize\"\n- \"Terminate\"\n**See the in-game Functions Viewer to see all the possible values. The following parameters are for \"Initialize\".**"},{"name":"spectator","type":"Object","optional":false,"default":null,"description":"player","types":["Object"],"since":null,"text":"spectator: Object - player"},{"name":"whitelistedSides","type":"Array","optional":true,"default":"[]","description":"sides that can be spectated","types":["Array"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"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","types":["Boolean"],"since":null,"text":"showLists: Boolean - (Optional, default: true) whether to show entities / locations lists"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"the return value depends on the mode. For \"Initialize\" and \"Terminate\" a Boolean indicating successful execution is returned.","text":"Boolean - the return value depends on the mode. For \"Initialize\" and \"Terminate\" a Boolean indicating successful execution is returned."}}],"examples":[{"text":"```sqf\n[\"Initialize\", [player]] call BIS_fnc_EGSpectator;\n```","code":["[\"Initialize\", [player]] call BIS_fnc_EGSpectator;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: End Game Spectator Mode"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Spectator","Functions","Introduced with Arma 3 version 1.54"],"docblock":null,"filled_from_docblock":[]}