periscopeElevation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Fix syntax)
m (Fix example)
Line 20: Line 20:


|r1= [[Array]] - in format [elevation, locked], where:
|r1= [[Array]] - in format [elevation, locked], where:
* elevation: [[Number]] - current periscope elevation value
* elevation: [[Number]] - current periscope elevation value. -1 in case of an invalid turret
* locked: [[Boolean]] - whether or not user override is blocked |Return Value=
* locked: [[Boolean]] - whether or not user override is blocked |Return Value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[periscopeElevation]] _eddie;</code> |Example 1=
|x1= <code>_eddie [[periscopeElevation]] [0];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 23:03, 22 November 2020

Hover & click on the images for description

Description

Description:
Returns current periscope elevation value, see also elevatePeriscope.
Groups:
Object ManipulationAnimations

Syntax

Syntax:
vehicle periscopeElevation turretPath
Parameters:
vehicle: Object - vehicle with periscope tech
turretPath: Array - turret path
Return Value:
Array - in format [elevation, locked], where:
  • elevation: Number - current periscope elevation value. -1 in case of an invalid turret
  • locked: Boolean - whether or not user override is blocked

Examples

Example 1:
_eddie periscopeElevation [0];

Additional Information

See also:
elevatePeriscopeanimationPhaseallTurretsPeriscopeElevationChanged

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

Bottom Section