getSpeed: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Get the speed for the given speed mode. | | Get the speed for the given speed mode. | ||
Line 13: | Line 13: | ||
*"SLOW" | *"SLOW" | ||
*"NORMAL" | *"NORMAL" | ||
*"FAST" | *"FAST" | ||
| object '''getSpeed''' speedMode | | object '''getSpeed''' speedMode | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= speedMode: [[String]] | |p2= speedMode: [[String]] | ||
| [[Number]] (m/s) | | [[Number]] (m/s) | ||
|x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code> | |x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code> | ||
| [[forceWalk]], [[isWalking]], [[forceSpeed]], [[isForcedWalk]] | | [[forceWalk]], [[isWalking]], [[forceSpeed]], [[isForcedWalk]] | ||
}} | }} |
Revision as of 00:40, 18 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