BIS fnc moveAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>")
m (Some wiki formatting)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Object Manipulation
____________________________________________________________________________________________


| Return current move action (used in [[playAction]], [[playActionNow]] and [[switchAction]]) |Description=
|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:
|p1= unit: [[Object]]
STRING or ARRAY
____________________________________________________________________________________________


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


|p1= unit: [[Object]] |Parameter 1=
|r1= [[Config]] or [[String]] - depends on ''returnConfig''


|p2= returnConfig: [[Boolean]] - [[true]] to return action config path, [[false]] to return the action name |Parameter 2=
|x1= <sqf>
_actionName = [player, false] call BIS_fnc_moveAction;
_actionConfig = [player,  true] call BIS_fnc_moveAction;
</sqf>


| [[Config]] or [[String]] - depends on ''returnConfig'' |Return value=
|seealso= [[playAction]] [[playActionNow]] [[switchAction]] [[playMove]] [[switchMove]]
____________________________________________________________________________________________
 
|x1= <code>_actionName  = [<nowiki/>[[player]], [[false]]] [[call]] [[BIS_fnc_moveAction]];
_actionConfig = [<nowiki/>[[player]],  [[true]]] [[call]] [[BIS_fnc_moveAction]];</code> |Example 1=
____________________________________________________________________________________________
 
| [[playAction]], [[playActionNow]], [[switchAction]], [[playMove]], [[switchMove]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:moveAction}}]]
[[Category:Function Group: Misc|{{uc:moveAction}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:moveAction}}]]

Latest revision as of 12: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