mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add functions to common for converting between "position" and ASL
This commit is contained in:
parent
1c25baa404
commit
12c0a77f86
@ -15,6 +15,7 @@ PREP(addSetting);
|
||||
PREP(adminKick);
|
||||
PREP(ambientBrightness);
|
||||
PREP(applyForceWalkStatus);
|
||||
PREP(ASLToPosition);
|
||||
PREP(beingCarried);
|
||||
PREP(binarizeNumber);
|
||||
PREP(blurScreen);
|
||||
@ -135,6 +136,7 @@ PREP(onLoadRscDisplayChannel);
|
||||
PREP(owned);
|
||||
PREP(player);
|
||||
PREP(playerSide);
|
||||
PREP(positionToASL);
|
||||
PREP(progressBar);
|
||||
PREP(queueAnimation);
|
||||
PREP(readSettingFromModule);
|
||||
|
21
addons/common/functions/fnc_ASLToPosition.sqf
Normal file
21
addons/common/functions/fnc_ASLToPosition.sqf
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Author: CAA-Picard
|
||||
* Converts ASL to Arma "Position"
|
||||
*
|
||||
* Arguments:
|
||||
* 0: position x <Number>
|
||||
* 1: position y <Number>
|
||||
* 2: position z <Number>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (surfaceIsWater _this) then {
|
||||
_this
|
||||
} else {
|
||||
ASLtoATL _this
|
||||
};
|
21
addons/common/functions/fnc_positionToASL.sqf
Normal file
21
addons/common/functions/fnc_positionToASL.sqf
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Author: CAA-Picard
|
||||
* Converts Arma "Position" to ASL
|
||||
*
|
||||
* Arguments:
|
||||
* 0: position x <Number>
|
||||
* 1: position y <Number>
|
||||
* 2: position z <Number>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (surfaceIsWater _this) then {
|
||||
_this
|
||||
} else {
|
||||
ATLtoASL _this
|
||||
};
|
Loading…
Reference in New Issue
Block a user