BIS_fnc_EGSpectator

From Bohemia Interactive Community
Revision as of 09:48, 6 October 2020 by R3vo (talk | contribs) (Text replacement - "|Game version=" to "|Game version= |gr1= Specatator |GROUP1")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
GROUP1 ____________________________________________________________________________________________
Execution:
call
Groups:
Specatator

Syntax

Syntax:
Spectator instance.
Parameters:
mode: String - Mode, can be
  • "Initialize"
  • "Terminate"
There are more options available. See the ingame functions viewer for what they do. Following parameters are for "Initialize"
specatator: Object - Player
whitelistedSides: Array - (Optional, default []) - Sides player can spectate
allowAi: Boolean - (Optional, default true) - Whether AI can be viewed by the spectator
allowFreeCamera: Boolean - (Optional, default true) - Whether Free camera mode is available
allow3PPCamera: Boolean - (Optional, default true) - Whether 3th Person Perspective camera mode is available
showFocusInfo: Boolean - (Optional, default true) - Whether to show Focus Info stats widget
showCameraButtons: Boolean - (Optional, default true) - Whether or not to show camera buttons widget
showControlsHelper: Boolean - (Optional, default true) - Whether to show controls helper widget
showHeader: Boolean - (Optional, default true) - Whether to show header widget
showLists: Boolean - (Optional, default true) - Whether to show entities / locations lists
Return Value:
[ mode,[specatator,whitelistedSides,allowAi,allowFreeCamera,allow3PPCamera,showFocusInfo,showCameraButtons,showControlsHelper,showHeader,showLists] ] call BIS_fnc_EGSpectator;

Examples

Example 1:
[ "Initialize", [player ] ] call BIS_fnc_EGSpectator;

Additional Information

See also:
Boolean - Return value depends on mode. For Initialize and terminate it returns boolean depending on whether or not execution was successful

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section