DMS_fnc_CalcPos - Defent/DMS_Exile GitHub Wiki
Author: eraser1
General information: This function will calculate a position given a center position and an offset and return the value as a 3D position.
[
_positionOrObject,
_relativePosition
] call DMS_fnc_CalcPos;
-
_positionOrObject
< OBJECT > or < ARRAY > (position): The center -
_relativePosition
< ARRAY > (position): The offset.
- Example 1 (from DMS_fnc_SetRelPositions):
private _objPos = [_newCPos,_relpos] call DMS_fnc_CalcPos;
- Example 2 (returns the ATL position 100 meters above "_object"):
_aboveObject = [_object, [0,0,100]] call DMS_fnc_CalcPos;