setPosASL2: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "Killzone Kid" to "Killzone_Kid") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
|gr2= Positions | |gr2= Positions | ||
|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. | |descr= Sets the object position. The pos array uses the [[Position#PositionASL|PositionASL]] format. | ||
{{Feature | | 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.}} | |||
|s1= obj [[setPosASL2]] pos | |s1= obj [[setPosASL2]] pos | ||
| Line 23: | Line 24: | ||
|p1= obj: [[Object]] | |p1= obj: [[Object]] | ||
|p2= pos: [[ | |p2= pos: [[Position#PositionASL|PositionASL]] | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>private _aslPos = getPosASL player; | |x1= <sqf> | ||
private _aslPos = getPosASL player; | |||
_aslPos set [1, _aslPos select 1 + 10]; | _aslPos set [1, _aslPos select 1 + 10]; | ||
player setPosASL2 _aslPos;</sqf> | player setPosASL2 _aslPos; | ||
</sqf> | |||
|seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]] | |seealso= [[setPosWorld]] [[getPosWorld]] [[setPosASL]] [[getPosASL]] | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20130821200700 | |||
|text= This command appears to do nothing in both {{arma2}} and {{arma3}}. | |||
}} | |||
This command appears to do nothing in both | |||
Latest revision as of 12:46, 13 February 2026
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: PositionASL
- Return Value:
- Nothing
Examples
- Example 1:
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
- Posted on Aug 21, 2013 - 20:07 (UTC)
- This command appears to do nothing in both Arma 2 and Arma 3.