periscopeElevation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2.00 update)
(Fix syntax)
Line 11: Line 11:


|descr= Returns current periscope elevation value, see also [[elevatePeriscope]]. |Description=
|descr= Returns current periscope elevation value, see also [[elevatePeriscope]]. |Description=
____________________________________________________________________________________________


|mp= |Multiplayer Behaviour=
|s1= vehicle [[periscopeElevation]] turretPath |Syntax=


|pr= |Problems=
|p1= vehicle: [[Object]] - vehicle with periscope tech |Parameter1=
____________________________________________________________________________________________
 
|p2= turretPath: [[Array]] - turret path


|s1= [[periscopeElevation]] vehicle |Syntax=
|r1= [[Array]] - in format [elevation, locked], where:
|p1= vehicle: [[Object]] - vehicle with periscope tech|Param1=
|r1= [[Array]] - in format [elevation, userisblocked], where:
* elevation: [[Number]] - current periscope elevation value
* elevation: [[Number]] - current periscope elevation value
* userisblocked: [[Boolean]] - whether or not user override is blocked|Return Value=
* locked: [[Boolean]] - whether or not user override is blocked |Return Value=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 27: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________


|seealso= [[elevatePeriscope]], [[animationPhase]], [[Arma_3:_Event_Handlers#PeriscopeElevationChanged|PeriscopeElevationChanged]]|See Also=
|seealso= [[elevatePeriscope]], [[animationPhase]], [[allTurrets]], [[Arma 3: Event Handlers#PeriscopeElevationChanged|PeriscopeElevationChanged]] |See Also=
}}
}}



Revision as of 00:01, 23 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
  • locked: Boolean - whether or not user override is blocked

Examples

Example 1:
periscopeElevation _eddie;

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