Skip to content
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.

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;

Clone this wiki locally