ATLToASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:ArmA 2 OA: New Scripting Commands List" to "[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List")
m (Some wiki formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |Game name=
|game1= arma2oa  
|version1= 1.62


|1.62|Game version=
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Converts a position from [[PositionATL]] to [[PositionASL]] |DESCRIPTION=
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| [[ATLToASL]] pos |SYNTAX=
|gr1= Positions


|p1= pos: [[PositionATL]] - position to convert |Parameter 1=
|descr= Converts a position from [[Position#PositionATL|PositionATL]] to [[Position#PositionASL|PositionASL]]


| [[PositionASL]] |RETURNVALUE=
|s1= [[ATLToASL]] pos
____________________________________________________________________________________________
 
|x1= <code>[[ATLToASL]] ([[getPosATL]] [[player]]) [[isEqualTo]] [[getPosASL]] [[player]]</code> |EXAMPLE1=


|x2= <code>_camPosASL = [[ATLToASL]] [[positionCameraToWorld]] [0,0,0];</code> |EXAMPLE2=
|p1= pos: [[Array]] format [[Position#PositionATL|PositionATL]] - position to convert
____________________________________________________________________________________________


| [[ASLToATL]], [[AGLToASL]], [[ASLToAGL]], [[getPos]], [[getPosATL]], [[getPosASL]] |SEEALSO=
|r1= [[Array]] format [[Position#PositionASL|PositionASL]]  
}}


<h3 style="display:none">Notes</h3>
|x1= <sqf>ATLToASL (getPosATL player) isEqualTo getPosASL player;</sqf>  
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>_camPosASL = ATLToASL positionCameraToWorld [0,0,0];</sqf>  
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[ASLToATL]] [[AGLToASL]] [[ASLToAGL]] [[getPos]] [[getPosATL]] [[getPosASL]]
 
}}
[[Category:Arma 2: Operation Arrowhead: 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}}}}]]

Latest revision as of 15:40, 10 May 2022

Hover & click on the images for description

Description

Description:
Converts a position from PositionATL to PositionASL
Groups:
Positions

Syntax

Syntax:
ATLToASL pos
Parameters:
pos: Array format PositionATL - position to convert
Return Value:
Array format PositionASL

Examples

Example 1:
Example 2:
_camPosASL = ATLToASL positionCameraToWorld [0,0,0];

Additional Information

See also:
ASLToATL AGLToASL ASLToAGL getPos getPosATL 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