setPosATL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>")
Line 35: Line 35:


<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on Feb 26, 2012 - 18:12 (CEST)</dd>
<dd class="notedate">Posted on Feb 26, 2012 - 18:12 (CEST)</dd>
Line 46: Line 47:


<dl class="command_description">
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on November 11, 2014 - 20:39 (UTC)</dd>
<dd class="notedate">Posted on November 11, 2014 - 20:39 (UTC)</dd>

Revision as of 13:34, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Positions

Syntax

Syntax:
Syntax needed
Parameters:
object: Object
pos: Array - format PositionATL
Return Value:
Nothing

Examples

Example 1:
player setPosATL [getPosATL player select 0, (getPosATL player select 1) - 10, getPosATL player select 2];

Additional Information

See also:
getPosATLgetPosgetPosASLsetPossetPosASL

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
Posted on Feb 26, 2012 - 18:12 (CEST)
Lou Montana
Please Note : this command demands PositionATL format ; one does not simply give 2D position, as this function won't do anything.
Posted on November 11, 2014 - 20:39 (UTC)
DreadedEntity
If you plan on creating bases through script, setPosATL and getPosATL will be your friends. Other commands like getPos or getPosASL will return the position relative to any objects that are underneath. I wrote a base building helper script and through multiple tests, I have found that getPosATL is the absolute best way to get position for objects that are over land.