getSpeed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
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

Hover & click on the images for description

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

Example 1:
_spd = player getSpeed "FAST";

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

Notes

Bottom Section