playActionNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma2 |version1= $1 |game2")
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
Line 63: Line 63:
Note that playAction works regardless of stance (rifle up, down, crouched, prone).
Note that playAction works regardless of stance (rifle up, down, crouched, prone).
</dl>
</dl>
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 23:36, 16 June 2021

Hover & click on the images for description

Description

Description:
When used on a person, a smooth transition to the given action will be initiated, but all previous playAction are discarded.
For Arma 3 actions see: playAction/actions.
Groups:
Animations

Syntax

Syntax:
soldier playActionNow action
Parameters:
soldier: Object -
action: String -
Return Value:
Nothing

Examples

Example 1:
soldierOne playActionNow "SitDown";
Example 2:
rabbitTwo playActionNow "WalkF";

Additional Information

See also:
playActionswitchActionplayMoveplayMoveNowswitchMove

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 October 12, 2010 - 9:41
Wolfrug (talk)
Some other possible playactions:
"walkf" - walk forward
"walkb" - walk backwards
"walkr" - strafe right
"walkl" - strafe left
"grabdrag" - initiate First Aid dragging animation
"stopdrag" - stops First Aid dragging animation
"reloadMagazine" - reloads the current magazine
"gestureFreeze" - hand signal "Freeze"
"GestureGo"
"GestureCover"
"GestureAttack"
"GestureCeaseFire"
"GestureFollow"
"GestureUp"
"GestureAdvance"
"GesturePoint"

Note that playAction works regardless of stance (rifle up, down, crouched, prone).