setPosASL2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00
 
|gr1= Broken Commands |GROUP1=
|gr2= Positions |GROUP2=
____________________________________________________________________________________________


|gr1= Broken Commands
|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.  
| Sets the object position. The pos array uses the [[PositionASL]] format. The version of the command does not offset based on object center.  
{{Warning | This command was deactivated and has no effect. Use [[setPosWorld]] instead.}}|DESCRIPTION=
{{Feature | Warning | This command was deactivated and has no effect. Use [[setPosWorld]] instead.}}
____________________________________________________________________________________________


| obj [[setPosASL2]] pos|SYNTAX=
| obj [[setPosASL2]] pos


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


|p2= pos: [[Array]] |PARAMETER2=
|p2= pos: [[Array]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


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


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


<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 21 Aug, 2013</dd>
<dd class="notedate">Posted on 21 Aug, 2013
<dt class="note">[[User:‎Killzone_Kid|‎Killzone Kid]]</dt>
<dt class="note">[[User:‎Killzone_Kid|‎Killzone Kid]]
<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.
<!-- Note Section END -->
</dl>
</dl>


<h3 style='display:none'>Bottom Section</h3>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 01:43, 6 April 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Broken CommandsPositions

Syntax

Syntax:
Syntax needed
Parameters:
obj: Object
pos: Array
Return Value:
Return value needed

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.