setPosASL2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
|1.00|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the object position. The pos array uses the [[PositionASL]] format. The version of the command does not offset based on object center. |= Description
| Sets the object position. The pos array uses the [[PositionASL]] format. The version of the command does not offset based on object center. |= Description
Line 21: Line 22:




|x1= <code>player '''setPosASL2''' <nowiki>[</nowiki>[[getPosASL]] player select 0, [[getPosASL]] player select 1 + 10, [[getPosASL]] select 2] </code>|= EXAMPLE1  
|x1= <code>player '''setPosASL2''' <nowiki>[</nowiki>[[getPosASL]] player select 0, ([[getPosASL]] player select 1) + 10, [[getPosASL]] player select 2] </code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 34: Line 35:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
{{note|This command appears to do nothing in both Arma 2 and Arma 3. Tested on 21-08-2013 }}
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 21:07, 21 August 2013

Hover & click on the images for description

Description

Description:
Sets the object position. The pos array uses the PositionASL format. The version of the command does not offset based on object center.
Groups:
Uncategorised

Syntax

Syntax:
obj setPosASL2 pos
Parameters:
obj: Object
pos: Array
Return Value:
Nothing

Examples

Example 1:
player setPosASL2 [getPosASL player select 0, (getPosASL player select 1) + 10, getPosASL player select 2]

Additional Information

See also:
setPosASL getPosASL

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

Template:note

Bottom Section