{"name":"isWalking","operator":null,"title":"isWalking","type":"command","url":"https://community.bistudio.com/wiki/isWalking","revid":364111,"updated":"2024-05-04T22:02:54Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns true if walk is **toggled** (default <kbd>W</kbd>+<kbd>S</kbd> in Arma 3).\n\n> [!NOTE]\n> 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.","syntaxes":[{"syntax":"isWalking unitName","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":null,"left":null,"right":{"text":"unitName","types":["Object"]}}],"examples":[{"text":"```sqf\n_bool = isWalking player;\n```","code":["_bool = isWalking player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["forceWalk","isForcedWalk","forceSpeed","getSpeed"],"notes":[{"user":"Benargee","date":"2015-03-08T21:03:00Z","text":"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.\nThis 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.\nWhen 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."}],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 2: Operation Arrowhead version 1.50","Scripting Commands","Take On Helicopters: Scripting Commands"]}