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.

Usage:

	[
		_positionOrObject,
		_relativePosition
	] call DMS_fnc_CalcPos;



Parameters

  • _positionOrObject < OBJECT > or < ARRAY > (position): The center
  • _relativePosition < ARRAY > (position): The offset.



Examples



  • Example 2 (returns the ATL position 100 meters above "_object"):
    _aboveObject = [_object, [0,0,100]] call DMS_fnc_CalcPos;
⚠️ **GitHub.com Fallback** ⚠️