setPosASL2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(51 intermediate revisions by 3 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


|game3= tkoh
|version3= 1.00


| Sets the object position. The pos array uses the [[PositionASL]] format. The version of the command does not offset based on object center.
|game4= arma3
{{warning | Appears to be broken}}|= Description|= Description
|version4= 0.50
____________________________________________________________________________________________


| obj '''setPosASL2''' pos|= Syntax
|gr1= Broken Commands
|gr2= Positions


|p1= obj: [[Object]] |PARAMETER1=
|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.}}


|p2= pos: [[Array]] |PARAMETER2=
|s1= obj [[setPosASL2]] pos


|p3= |PARAMETER3=  
|p1= obj: [[Object]]


| [[Nothing]] |RETURNVALUE=
|p2= pos: [[Array]]


|r1= [[Nothing]]


|x1= <code>player '''setPosASL2''' <nowiki>[</nowiki>[[getPosASL]] player select 0, ([[getPosASL]] player select 1) + 10, [[getPosASL]] player select 2] </code>|EXAMPLE1=
|x1= <sqf>
private _aslPos = getPosASL player;
_aslPos set [1, _aslPos select 1 + 10];
player setPosASL2 _aslPos;
</sqf>


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


|  |MPBEHAVIOUR=  
<dl class="command_description">
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
<dt></dt>
<dl class='command_description'>
<dd class="notedate">Posted on 21 Aug, 2013</dd>
<!-- Note Section BEGIN -->
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt>
<dd class="notedate">Posted on 21 Aug, 2013
<dd class="note">
<dt class="note">'''[[User:‎Killzone_Kid|‎Killzone Kid]]'''<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.
<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]]

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.