isWalking: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (global args)
m (Some wiki formatting)
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|1.51|= Game version
|version1= 1.50
|arg= global|= Arguments in MP
____________________________________________________________________________________________


| Returns [[true]] if walk is toggled (W+S in Arma 3). |= Description
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| '''isWalking''' unitName  |= Syntax
|game3= arma3
|version3= 0.50


|p1= unitName: [[Object]] |=  
|arg= global


| [[Boolean]] |= Return value
|gr1= Object Manipulation
____________________________________________________________________________________________


|x1= <code>_bool = [[isWalking]] [[player]];</code> |=
|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.}}


| [[forceWalk]], [[isForcedWalk]], [[forceSpeed]], [[getSpeed]] |= See also
|s1= [[isWalking]] unitName


}}
|p1= unitName: [[Object]]


<h3 style="display:none">Notes</h3>
|r1= [[Boolean]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_bool = isWalking player;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[forceWalk]] [[isForcedWalk]] [[forceSpeed]] [[getSpeed]]
}}


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
{{Note
<dl class="command_description">
|user= Benargee
<dd class="notedate">Posted on March 8, 2015 - 21:03 (UTC)</dd>
|timestamp= 20150308210300
<dt class="note">[[User:Benargee|Benargee]]</dt>
|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.
<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.
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.
</dd>
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.
</dl>
}}
<!-- DISCONTINUE Notes -->

Latest revision as of 00:02, 5 May 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


Benargee - c
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.