setPosASL2: Difference between revisions

From Bohemia Interactive Community
(populated with empty template)
m (Some wiki formatting)
 
(65 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| (description) |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''(command)''' |= Syntax
|game4= arma3
|version4= 0.50


|p1= |= PARAMETER1
|gr1= Broken Commands
|gr2= Positions


|p2= |= PARAMETER2
|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.}}


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


| |= RETURNVALUE
|p1= obj: [[Object]]


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


|x1= <code>(example)</code>|= EXAMPLE1
|r1= [[Nothing]]


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


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


| |= MPBEHAVIOUR
{{Note
____________________________________________________________________________________________
|user= Killzone_Kid
|timestamp= 20130821200700
|text= This command appears to do nothing in both {{arma2}} and {{arma3}}.
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11: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.