enableFreeLook

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Enables or disables the freelook toggle (2x Alt)
Groups:
Object Manipulation

Syntax

Syntax:
enableFreeLook enable
Parameters:
Boolean - enable or disable the toggle
Return Value:
Boolean - Previous state

Examples

Example 1:
enableFreeLook true;
Example 2:
// a function to get the current state without making changes private _fnc_isFreeLookToggled = { private _oldState = enableFreeLook true; // enable temporarily; get state enableFreeLook _oldState; _oldState; // return the state }; private _isFreeLookToggled = call _fnc_isFreeLookToggled; // a function to toggle the state private _fnc_toggleFreeLook = { enableFreeLook !enableFreeLook false; }; call _fnc_toggleFreeLook; // toggle it (if enabled->disable it, and vice versa)

Additional Information

See also:
freeLook

Notes

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