isWalking

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.51
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.51

Description

Description:
Returns true if walk is toggled (W+S in Arma 3).

Syntax

Syntax:
isWalking unitName
Parameters:
unitName: Object
Return Value:
Boolean

Examples

Example 1:
_bool = isWalking player;

Additional Information

Multiplayer:
-
See also:
forceWalkisForcedWalkforceSpeedgetSpeed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on March 8, 2015 - 21:03 (UTC)
Benargee
To expand on the limited description, this command doesn't necessarily say whether or not the unit is currently walking. All it says is that walking is toggled on or off. This command can still return true when the unit is sprinting. When walking is toggled on, the unit will return to walking pace when not sprinting. When walking is toggled off, the unit will return to jogging pace when not sprinting. This command is not intended to gauge a units current movement speed.