setPosASL2: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Broken Commands | |gr1= Broken Commands | ||
|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. | | 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.}} | {{Warning | This command was deactivated and has no effect. Use [[setPosWorld]] instead.}} | ||
| obj [[setPosASL2]] pos | | obj [[setPosASL2]] pos | ||
|p1= obj: [[Object]] | |p1= obj: [[Object]] | ||
|p2= pos: [[Array]] | |p2= pos: [[Array]] | ||
| [[Nothing]] | | [[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> | [[player]] [[setPosASL2]] _aslPos;</code> | ||
| [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]] | | [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]] | ||
}} | }} | ||
Revision as of 11:08, 18 January 2021
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:
- 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
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.