setUnitPos: Difference between revisions

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


| ofp |= Game name


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


| Set unit position rules. Mode may be one of:
* '''"DOWN"''' - person goes prone and stays prone.
* '''"UP"''' - person stands and stays standing.
* '''"AUTO"''' - person chooses mode according to circumstances.
|= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''setUnitPos''' mode |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''mode:''' [[String]]
|p2= mode: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>loon1 setUnitPos "UP"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set unit position rules.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Mode''' may be one of:
<!-- Note Section END -->
</dl>


* '''"DOWN"''' - person goes prone and stays prone.
<h3 style="display:none">Bottom Section</h3>
* '''"UP"''' - person stands and stays standing.
[[Category:Scripting Commands|SETUNITPOS]]
* '''"AUTO"''' - person chooses mode according to circumstances.
[[Category:Scripting Commands OFP 1.96|SETUNITPOS]]
 
[[Category:Scripting Commands OFP 1.46|SETUNITPOS]]
 
[[Category:Scripting Commands ArmA|SETUNITPOS]]
'''Example:'''
 
loon1 '''setUnitPos''' '''"UP"'''

Revision as of 00:34, 2 August 2006

Hover & click on the images for description

Description

Description:
Set unit position rules. Mode may be one of:
  • "DOWN" - person goes prone and stays prone.
  • "UP" - person stands and stays standing.
  • "AUTO" - person chooses mode according to circumstances.
Groups:
Uncategorised

Syntax

Syntax:
unit setUnitPos mode
Parameters:
unit: Object
mode: String
Return Value:
Nothing

Examples

Example 1:
loon1 setUnitPos "UP"

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