isWalking: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2oa | | |game1= arma2oa | ||
|version1= 1.50 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
| | |game3= arma3 | ||
|version3= 0.50 | |||
| | |arg= global | ||
| | |gr1= Object Manipulation | ||
| [[ | |descr= Returns [[true]] if walk is '''toggled''' (default {{Controls|W|S}} in {{arma3}}). | ||
{{Feature|informative|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.}} | |||
| | |s1= [[isWalking]] unitName | ||
| [[ | |p1= unitName: [[Object]] | ||
| | |r1= [[Boolean]] | ||
| [[forceWalk]] | |x1= <sqf>_bool = isWalking player;</sqf> | ||
|seealso= [[forceWalk]] [[isForcedWalk]] [[forceSpeed]] [[getSpeed]] | |||
}} | }} | ||
{{Note | |||
|user= Benargee | |||
|timestamp= 20150308210300 | |||
|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. | |||
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. | |||
}} | |||
Latest revision as of 23:02, 4 May 2024
Description
- Description:
- Returns true if walk is toggled (default W + S in Arma 3).
- Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
Additional Information
- See also:
- forceWalk isForcedWalk forceSpeed getSpeed
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
- Posted on Mar 08, 2015 - 21:03 (UTC)
- 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.