enableFreeLook: Difference between revisions

From Bohemia Interactive Community
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.22 |gr1= Object Manipulation |descr= Enables or disables the freelook toggle (2x Alt) |s1= enableFreeLook enable |p1= Boolean - enable or disable the toggle |r1= Boolean - Previous state |x1= <sqf>enableFreeLook true;</sqf> |seealso= freeLook }}")
 
No edit summary
Line 13: Line 13:


|x1= <sqf>enableFreeLook true;</sqf>
|x1= <sqf>enableFreeLook true;</sqf>
|x2= <sqf>// 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;
</sqf>


|seealso= [[freeLook]]
|seealso= [[freeLook]]
}}
}}

Revision as of 19:55, 14 March 2026

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;

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