BIS fnc moveAction: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Return current move action (used in [[playAction]], [[playActionNow]] and [[switchAction]]) | | Return current move action (used in [[playAction]], [[playActionNow]] and [[switchAction]]) | ||
Parameter(s): | Parameter(s): | ||
Line 16: | Line 16: | ||
STRING or ARRAY | STRING or ARRAY | ||
| [unit'', returnConfig''] call [[BIS_fnc_moveAction]] | | [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]] - [[true]] to return action config path, [[false]] to return the action name | ||
| [[Config]] or [[String]] - depends on ''returnConfig'' | | [[Config]] or [[String]] - depends on ''returnConfig'' | ||
|x1= <code>_actionName = [<nowiki/>[[player]], [[false]]] [[call]] [[BIS_fnc_moveAction]]; | |x1= <code>_actionName = [<nowiki/>[[player]], [[false]]] [[call]] [[BIS_fnc_moveAction]]; | ||
_actionConfig = [<nowiki/>[[player]], [[true]]] [[call]] [[BIS_fnc_moveAction]];</code> | _actionConfig = [<nowiki/>[[player]], [[true]]] [[call]] [[BIS_fnc_moveAction]];</code> | ||
| [[playAction]], [[playActionNow]], [[switchAction]], [[playMove]], [[switchMove]] | | [[playAction]], [[playActionNow]], [[switchAction]], [[playMove]], [[switchMove]] | ||
}} | }} | ||
Revision as of 23:37, 17 January 2021
Description
- Description:
- Return current move action (used in playAction, playActionNow and switchAction) Parameter(s): 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
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [unit, returnConfig] call BIS_fnc_moveAction
- Parameters:
- unit: Object
- returnConfig: Boolean - 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
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