isWalking: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{uc:{{PAGENAME}}}}" to "")
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma2oa
|game1= arma2oa
|version1= 1.51
|version1= 1.50


|game2= tkoh
|game2= tkoh
Line 15: Line 15:


|descr= Returns [[true]] if walk is '''toggled''' (default W+S in {{arma3}}).
|descr= Returns [[true]] if walk is '''toggled''' (default 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.}}
{{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
|s1= [[isWalking]] unitName


|p1= unitName: [[Object]]
|p1= unitName: [[Object]]
Line 23: Line 23:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>_bool = [[isWalking]] [[player]];</code>
|x1= <sqf>_bool = isWalking player;</sqf>


|seealso= [[forceWalk]], [[isForcedWalk]], [[forceSpeed]], [[getSpeed]]
|seealso= [[forceWalk]] [[isForcedWalk]] [[forceSpeed]] [[getSpeed]]
}}
}}


Line 32: Line 32:


<dt></dt>
<dt></dt>
<dd class="notedate">Posted on March 8, 2015 - 21:03 (UTC)</dd>
<dd class="notedate">Posted on 2015-03-08 - 21:03 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">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.
<dd class="note">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.

Revision as of 19:11, 15 March 2024

Hover & click on the images for description

Description

Description:
Returns true if walk is toggled (default W+S in Arma 3).
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.
Groups:
Object Manipulation

Syntax

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

Examples

Example 1:
_bool = isWalking player;

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 2015-03-08 - 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.