setPosASL2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 27: Line 27:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>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;</code>
player setPosASL2 _aslPos;</sqf>


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

Revision as of 10:24, 13 May 2022

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: Array
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 or on the Forums.
Only post proven facts here! Add Note
Posted on 21 Aug, 2013
‎Killzone Kid
This command appears to do nothing in both Arma 2 and Arma 3. Tested on 21-08-2013.