action: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ACTION]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ACTION]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ACTION]]
[[Category:Scripting Commands ArmA|ACTION]]


| ofp |= Game name


<h2 style="color:#000066">'''''unit'' action ''action'''''</h2>
|1.00|= Game version


|arg= local |= Arguments in MP


'''Operand types:'''
|eff= global |= Effects in MP
____________________________________________________________________________________________


'''unit:''' [[Object]]
| Make a unit to perform an action. Use the [[List of Actions]] for reference about the available actions and their syntax. |= Description
____________________________________________________________________________________________


'''action:''' [[Array]]
| unit '''action''' action |= Syntax


'''Type of returned value:'''
|p1= unit: [[Object]] |= Parameter 1


[[Nothing]]
|p2= action: [[Array]] |= Parameter 2


'''Description:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>soldier action ["eject", vehicle soldier]</pre> |= Example 1
____________________________________________________________________________________________


Make unit peform an action.
|  |= See also


Format of action may be '''''[type, target, param1, param2, param3]'''''.
}}


Only type is required, target defaults to unit, '''''param1''''', '''''param2''''', '''''param3''''' are type specific.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


soldierOne '''action''' ["eject", [[vehicle]] soldierOne]
[[Category:Scripting Commands|ACTION]]
 
[[Category:Scripting Commands OFP 1.96|ACTION]]
 
[[Category:Scripting Commands OFP 1.46|ACTION]]
'''Possible Actions:'''
[[Category:Scripting Commands ArmA|ACTION]]
 
[[Operation Flashpoint: Actions List|Operation Flashpoint Version 1.96]]

Revision as of 22:50, 1 August 2006

Hover & click on the images for description

Description

Description:
Make a unit to perform an action. Use the List of Actions for reference about the available actions and their syntax.
Groups:
Uncategorised

Syntax

Syntax:
unit action action
Parameters:
unit: Object
action: Array
Return Value:
Nothing

Examples

Example 1:
soldier action ["eject", vehicle soldier]

Additional Information

See also:
See also needed

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