Arma 3 Scripting

isWalking

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.50

Command · Markdown · JSON · original wiki page

Description

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

Note

This command can still return true when the unit is sprinting or stopped; it only returns the toggle value of walking, not if the unit is walking right now.

Syntax

isWalking unitName

Parameters:

Returns: Boolean

Examples

Example 1

_bool = isWalking player;

See also

forceWalk · isForcedWalk · forceSpeed · getSpeed

Community notes

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.