-
Notifications
You must be signed in to change notification settings - Fork 107
DMS_fnc_CalcPos
eraser1 edited this page Sep 23, 2018
·
6 revisions
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;