getSpeed: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Get the speed for the given speed mode. | | Get the speed for the given speed mode. | ||
Line 16: | Line 14: | ||
*"NORMAL" | *"NORMAL" | ||
*"FAST" |DESCRIPTION= | *"FAST" |DESCRIPTION= | ||
| object '''getSpeed''' speedMode |SYNTAX= | | object '''getSpeed''' speedMode |SYNTAX= | ||
Line 25: | Line 22: | ||
| [[Number]] (m/s) |RETURNVALUE= | | [[Number]] (m/s) |RETURNVALUE= | ||
|x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code> |= | |x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code> |= |
Revision as of 01:43, 17 January 2021
Description
- Description:
- Get the speed for the given speed mode.
SpeedMode can be:
- "AUTO"
- "SLOW"
- "NORMAL"
- "FAST"
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object getSpeed speedMode
- Parameters:
- object: Object
- speedMode: String
- Return Value:
- Number (m/s)
Examples
Additional Information
- See also:
- forceWalkisWalkingforceSpeedisForcedWalk
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