setPosASL2: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
m (Some wiki formatting)
 
(4 intermediate revisions by 2 users not shown)
Line 16: Line 16:
|gr2= Positions
|gr2= Positions


|descr= Sets the object position. The pos array uses the [[Position#PositionASL|PositionASL]] format. The version of the command does not offset based on object center.  
|descr= Sets the object position. The pos array uses the [[Position#PositionASL|PositionASL]] format.
{{Feature | Warning | This command was deactivated and has no effect. Use [[setPosWorld]] instead.}}
The version of the command does not offset based on object center.  
{{Feature|warning|This command was deactivated and has no effect. Use [[setPosWorld]] instead.}}


|s1= obj [[setPosASL2]] pos
|s1= obj [[setPosASL2]] pos
Line 23: Line 24:
|p1= obj: [[Object]]
|p1= obj: [[Object]]


|p2= pos: [[Array]]
|p2= pos: [[Position#PositionASL|PositionASL]]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>private _aslPos = getPosASL player;
|x1= <sqf>
private _aslPos = getPosASL player;
_aslPos set [1, _aslPos select 1 + 10];
_aslPos set [1, _aslPos select 1 + 10];
player setPosASL2 _aslPos;</sqf>
player setPosASL2 _aslPos;
</sqf>


|seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]]
|seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Killzone_Kid
<dt></dt>
|timestamp= 20130821200700
<dd class="notedate">Posted on 21 Aug, 2013</dd>
|text= This command appears to do nothing in both {{arma2}} and {{arma3}}.
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
}}
<dd class="note">
This command appears to do nothing in both Arma 2 and Arma 3. Tested on 21-08-2013.
</dl>

Latest revision as of 12:46, 13 February 2026

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.
This command was deactivated and has no effect. Use setPosWorld instead.
Groups:
Broken CommandsPositions

Syntax

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

Examples

Example 1:
private _aslPos = getPosASL player; _aslPos set [1, _aslPos select 1 + 10]; player setPosASL2 _aslPos;

Additional Information

See also:
setPosWorld getPosWorld setPosASL getPosASL

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Killzone_Kid - c
Posted on Aug 21, 2013 - 20:07 (UTC)
This command appears to do nothing in both Arma 2 and Arma 3.