BIS fnc moveAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |s1=[" to " |s1= [")
m (Some wiki formatting)
 
Line 8: Line 8:
|descr= Return current move action (used in [[playAction]], [[playActionNow]] and [[switchAction]])
|descr= Return current move action (used in [[playAction]], [[playActionNow]] and [[switchAction]])


Parameter(s):
|s1= [unit, returnConfig] call [[BIS_fnc_moveAction]]
0: OBJECT
1 (Optional): BOOL - true to return config path of the action, false to return just the action name (default: false)
 
Returns:
STRING or ARRAY
 
|s1= [unit'', returnConfig''] call [[BIS_fnc_moveAction]]


|p1= unit: [[Object]]
|p1= unit: [[Object]]


|p2= returnConfig: [[Boolean]] - [[true]] to return action config path, [[false]] to return the action name
|p2= returnConfig: [[Boolean]] - (Optional, default [[false]]) [[true]] to return action config path, [[false]] to return the action name


|r1= [[Config]] or [[String]] - depends on ''returnConfig''
|r1= [[Config]] or [[String]] - depends on ''returnConfig''


|x1= <code>_actionName   = [<nowiki/>[[player]], [[false]]] [[call]] [[BIS_fnc_moveAction]];
|x1= <sqf>
_actionConfig = [<nowiki/>[[player]][[true]]] [[call]] [[BIS_fnc_moveAction]];</code>
_actionName = [player, false] call BIS_fnc_moveAction;
_actionConfig = [player,  true] call BIS_fnc_moveAction;
</sqf>


|seealso= [[playAction]] [[playActionNow]] [[switchAction]] [[playMove]] [[switchMove]]
|seealso= [[playAction]] [[playActionNow]] [[switchAction]] [[playMove]] [[switchMove]]
}}
}}

Latest revision as of 13:36, 13 July 2022

Hover & click on the images for description

Description

Description:
Return current move action (used in playAction, playActionNow and switchAction)
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[unit, returnConfig] call BIS_fnc_moveAction
Parameters:
unit: Object
returnConfig: Boolean - (Optional, default false) true to return action config path, false to return the action name
Return Value:
Config or String - depends on returnConfig

Examples

Example 1:
_actionName = [player, false] call BIS_fnc_moveAction; _actionConfig = [player, true] call BIS_fnc_moveAction;

Additional Information

See also:
playAction playActionNow switchAction playMove switchMove

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