periscopeElevation: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix syntax) |
Lou Montana (talk | contribs) 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]] | |x1= <code>_eddie [[periscopeElevation]] [0];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:03, 22 November 2020
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:
Examples
- Example 1:
_eddie periscopeElevation [0];
Additional Information
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