getSpeed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\|= * " to " ")
Line 23: Line 23:
| [[Number]] (m/s) |RETURNVALUE=
| [[Number]] (m/s) |RETURNVALUE=


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


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

Revision as of 21:32, 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

Bottom Section