elevatePeriscope: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2.00 update)
m (Some wiki formatting)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3 |Game name=
|game1= arma3
|version1= 2.00


|version= 2.00 |Game version=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|gr2= Animations


|gr2= Animations |GROUP2=
|descr= Elevates periscope of a vehicle. Vehicles in Arma 3 which are compatible with this tech are Strider, remote laser designators, the robot arm on Eddie, etc.
____________________________________________________________________________________________
Please note that SDV submarine has a different periscope, which is just an animated selection and could be raised and lowered with [[animate]] command.
 
{{Feature|informative|
|descr= Elevates periscope of a vehicle. Vehicles in Arma 3 which are compatible with this tech are Strider, remote laser designators, the robot arm on Eddie, etc. Please note that SDV submarine has a different periscope, which is just an animated selection and could be raised and lowered with [[animate]] command.  
* a user can immediately override any elevation in progress by using assigned keyboard keys. To block user input see the ''blockUserInput'' parameter.
{{Informative | User can immediately override any elevation in progress by using assigned keyboard keys. To block user input use <tt>blockuser</tt> param.}}
* a [[Arma 3: Event Handlers#PeriscopeElevationChanged|PeriscopeElevationChanged]] entity event handler is also provided.
A [[Arma_3:_Event_Handlers#PeriscopeElevationChanged | PeriscopeElevationChanged]] entity event handler is also provided.|Description=
}}


|mp= |Multiplayer Behaviour=
|s1= vehicle [[elevatePeriscope]] [turret, elevation, speed, blockUserInput]


|pr= |Problems=
|p1= vehicle: [[Object]] - vehicle with periscope tech
____________________________________________________________________________________________


|s1= vehicle [[elevatePeriscope]] [turret, elevation, speed, blockuser] |Syntax=
|p2= turret: [[Array]] - turret on which periscope is located
|p1= vehicle: [[Object]] - vehicle with periscope tech|Param1=
|p2= [turret, elevation, speed, blockuser]: [[Array]]|Param2=
|p3= turret: [[Array]] - turret on which periscope is located|Param3=
|p4= elevation: [[Number]] - elevation range 0...1|Param4=
|p5= speed (Optional): [[Number]] or [[Boolean]] - config anim speed multiplier, 2 - twice as fast, 0.5 - twice as slow, etc. -1 - default config speed. If [[true]] is used as param, the change in elevation is almost instant.|Param5=
|p6= blockuser (Optional): [[Boolean]] - [[true]] to disable user ability to control periscope with keyboard. The change is persistent unless you set it to [[false]] again.|Param6=


|r1= [[Nothing]]|Return Value=
|p3= elevation: [[Number]] - elevation range 0..1
____________________________________________________________________________________________


|x1= <code>_eddie [[elevatePeriscope]] [<nowiki/>[0], 0.75, 0.1];</code> |Example 1=
|p4= speed: [[Number]] or [[Boolean]] - (Optional, default -1) config anim speed multiplier, 2 - twice as fast, 0.5 - twice as slow, etc. -1 - default config speed. If [[true]] is used as param, the change in elevation is almost instant
____________________________________________________________________________________________


|seealso= [[periscopeElevation]], [[animate]], [[Arma_3:_Event_Handlers#PeriscopeElevationChanged | PeriscopeElevationChanged]] |See Also=
|p5= blockUserInput: [[Boolean]] - (Optional, default [[false]]) [[true]] to disable user ability to control periscope with keyboard. The change is persistent unless set to [[false]] again
}}


<dl class="command_description">
|r1= [[Nothing]]
<!-- BEGIN Note Section -->


<!-- END Note Section -->
|x1= <sqf>_eddie elevatePeriscope [[0], 0.75, 0.1];</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[periscopeElevation]] [[animate]] [[Arma 3: Event Handlers#PeriscopeElevationChanged|PeriscopeElevationChanged Event Handler]]
}}

Latest revision as of 12:42, 4 May 2022

Hover & click on the images for description

Description

Description:
Elevates periscope of a vehicle. Vehicles in Arma 3 which are compatible with this tech are Strider, remote laser designators, the robot arm on Eddie, etc. Please note that SDV submarine has a different periscope, which is just an animated selection and could be raised and lowered with animate command.
  • a user can immediately override any elevation in progress by using assigned keyboard keys. To block user input see the blockUserInput parameter.
  • a PeriscopeElevationChanged entity event handler is also provided.
Groups:
Object ManipulationAnimations

Syntax

Syntax:
vehicle elevatePeriscope [turret, elevation, speed, blockUserInput]
Parameters:
vehicle: Object - vehicle with periscope tech
turret: Array - turret on which periscope is located
elevation: Number - elevation range 0..1
speed: Number or Boolean - (Optional, default -1) config anim speed multiplier, 2 - twice as fast, 0.5 - twice as slow, etc. -1 - default config speed. If true is used as param, the change in elevation is almost instant
blockUserInput: Boolean - (Optional, default false) true to disable user ability to control periscope with keyboard. The change is persistent unless set to false again
Return Value:
Nothing

Examples

Example 1:
_eddie elevatePeriscope [[0], 0.75, 0.1];

Additional Information

See also:
periscopeElevation animate PeriscopeElevationChanged Event Handler

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