forceWalk: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2oa |Game name=
| arma2oa


|1.51|Game version=
|1.51


|arg= local |Multiplayer Arguments=
|arg= local


|gr1= Stamina System |GROUP1=
|gr1= Stamina System




| Forces unit to walk even if run or sprint is selected. |DESCRIPTION=
| Forces unit to walk even if run or sprint is selected.


| unit '''forceWalk''' value |SYNTAX=
| unit '''forceWalk''' value


|p1= unit: [[Object]] - the unit forced to walk |PARAMETER1=
|p1= unit: [[Object]] - the unit forced to walk
|p2= value: [[Boolean]] - true/false |PARAMETER2=
|p2= value: [[Boolean]] - true/false


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>[[player]] [[forceWalk]] [[true]];</code> |EXAMPLE1=
|x1= <code>[[player]] [[forceWalk]] [[true]];</code>


| [[isForcedWalk]], [[isWalking]], [[forceSpeed]], [[getSpeed]] |SEEALSO=
| [[isForcedWalk]], [[isWalking]], [[forceSpeed]], [[getSpeed]]


}}
}}

Revision as of 00:34, 18 January 2021

Hover & click on the images for description

Description

Description:
Forces unit to walk even if run or sprint is selected.
Groups:
Stamina System

Syntax

Syntax:
unit forceWalk value
Parameters:
unit: Object - the unit forced to walk
value: Boolean - true/false
Return Value:
Nothing

Examples

Example 1:
player forceWalk true;

Additional Information

See also:
isForcedWalkisWalkingforceSpeedgetSpeed

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

Notes

Bottom Section