elevatePeriscope: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *Multiplayer Behaviour *= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *[Pp]aram *[0-9]* *= * " to " ") |
||
Line 18: | Line 18: | ||
|s1= vehicle [[elevatePeriscope]] [turret, elevation, speed, blockuser] | |s1= vehicle [[elevatePeriscope]] [turret, elevation, speed, blockuser] | ||
|p1= vehicle: [[Object]] - vehicle with periscope tech | |p1= vehicle: [[Object]] - vehicle with periscope tech | ||
|p2= [turret, elevation, speed, blockuser]: [[Array]] | |p2= [turret, elevation, speed, blockuser]: [[Array]] | ||
|p3= turret: [[Array]] - turret on which periscope is located | |p3= turret: [[Array]] - turret on which periscope is located | ||
|p4= elevation: [[Number]] - elevation range 0...1 | |p4= elevation: [[Number]] - elevation range 0...1 | ||
|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. | |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. | ||
|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. | |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. | ||
|r1= [[Nothing]] | |r1= [[Nothing]] |
Revision as of 16:34, 7 February 2021
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 PeriscopeElevationChanged entity event handler is also provided.
- Groups:
- Object ManipulationAnimations
Syntax
- Syntax:
- vehicle elevatePeriscope [turret, elevation, speed, blockuser]
- Parameters:
- vehicle: Object - vehicle with periscope tech
- [turret, elevation, speed, blockuser]: Array
- turret: Array - turret on which periscope is located
- elevation: Number - elevation range 0...1
- 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.
- blockuser (Optional): Boolean - true to disable user ability to control periscope with keyboard. The change is persistent unless you set it to false again.
- Return Value:
- Nothing
Examples
- Example 1:
_eddie elevatePeriscope [[0], 0.75, 0.1];
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