setPosASL2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2
|1.00
|version1= 1.00


|game2= arma2oa
|game2= arma2oa
Line 16: Line 16:
|gr2= Positions
|gr2= Positions


| Sets the object position. The pos array uses the [[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. 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.}}
{{Feature|warning|This command was deactivated and has no effect. Use [[setPosWorld]] instead.}}


|s1= obj [[setPosASL2]] pos
|s1= obj [[setPosASL2]] pos


|p1= obj: [[Object]]
|p1= obj: [[Object]]
Line 27: Line 27:
|r1= [[Nothing]]
|r1= [[Nothing]]


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


|seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]]
|seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]]
Line 38: Line 40:
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on 21 Aug, 2013</dd>
<dd class="notedate">Posted on 21 Aug, 2013</dd>
<dt class="note">[[User:‎Killzone_Kid|‎Killzone Kid]]</dt>
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="note">
<dd class="note">
This command appears to do nothing in both Arma 2 and Arma 3. Tested on 21-08-2013.
This command appears to do nothing in both Arma 2 and Arma 3. Tested on 21-08-2013.
</dl>
</dl>
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 11:34, 3 September 2024

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.