getSpeed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(number unit)
m (template:command argument fix)
Line 13: Line 13:
*"SLOW"
*"SLOW"
*"NORMAL"
*"NORMAL"
*"FAST" |= Description
*"FAST" |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


| [[Number]] (m/s) |= Return value
| [[Number]] (m/s) |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


}}
}}

Revision as of 15:40, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
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:
Uncategorised

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