getSpeed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= * " to " ")
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|Comments=
{{Command


| arma1 |Game name=
| arma1
|1.00|Game version=
|1.00
|arg= global|Multiplayer Arguments=
|arg= global


|gr1= Object Manipulation |GROUP1=
|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" |DESCRIPTION=
*"FAST"


| object '''getSpeed''' speedMode |SYNTAX=
| object '''getSpeed''' speedMode


|p1= object: [[Object]] |PARAMETER1=
|p1= object: [[Object]]


|p2= speedMode: [[String]] |PARAMETER2=
|p2= speedMode: [[String]]


| [[Number]] (m/s) |RETURNVALUE=
| [[Number]] (m/s)


|x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code>
|x1= <code>_spd = [[player]] [[getSpeed]] "FAST";</code>


| [[forceWalk]], [[isWalking]], [[forceSpeed]], [[isForcedWalk]] |SEEALSO=
| [[forceWalk]], [[isWalking]], [[forceSpeed]], [[isForcedWalk]]


}}
}}

Revision as of 01:40, 18 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

Bottom Section