Description
Returns current periscope elevation value, see also elevatePeriscope.
Syntax
vehicle periscopeElevation turretPath
Parameters:
vehicle: Object - vehicle with periscope techturretPath: Turret Path
Returns: Array format [elevation, isLocked]:
- elevation: Number - current periscope elevation value. -1 in case of an invalid turret
- isLocked: Boolean - whether or not user override is blocked
Examples
Example 1
_eddie periscopeElevation [0] params ["_elevation", "_isLocked"];
See also
elevatePeriscope · animationPhase · allTurrets · Arma 3: Event Handlers