setPosASL2: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) (Add note about setPosWorld) |
||
Line 9: | Line 9: | ||
| 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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| obj | | obj [[setPosASL2]] pos|SYNTAX= | ||
|p1= obj: [[Object]] |PARAMETER1= | |p1= obj: [[Object]] |PARAMETER1= | ||
|p2= pos: [[Array]] |PARAMETER2= | |p2= pos: [[Array]] |PARAMETER2= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[private]] _aslPos = [[getPosASL]] [[player]]; | |||
|x1= <code> | _aslPos set [1, _aslPos [[select]] 1 + 10]; | ||
[[player]] [[setPosASL2]] _aslPos;</code>|EXAMPLE1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setPosASL]] [[getPosASL]] |SEEALSO= | | [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]] |SEEALSO= | ||
}} | }} | ||
Line 37: | Line 32: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on 21 Aug, 2013 | <dd class="notedate">Posted on 21 Aug, 2013 | ||
<dt 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 --> | <!-- Note Section END --> | ||
Line 44: | Line 40: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 20:43, 14 March 2020
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.
- Groups:
- Uncategorised
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
Notes
- 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.