ACE3/addons/dragging/functions/fnc_isObjectOnObject.sqf

19 lines
350 B
Plaintext
Raw Normal View History

2015-08-09 12:53:13 +00:00
/*
* Author: commy2
* Checks if an object is overlapping another object.
2015-08-09 12:53:13 +00:00
*
2016-06-18 09:50:41 +00:00
* Arguments:
2015-08-09 12:53:13 +00:00
* 0: Object <OBJECT>
*
2016-06-18 09:50:41 +00:00
* Return Value:
* If object is overlapping another <BOOL>
2015-08-09 12:53:13 +00:00
*
* Example:
* [player] call ace_dragging_fnc_isObjectOnObject;
2016-01-28 18:52:53 +00:00
*
2015-08-09 12:53:13 +00:00
* Public: No
*/
params ["_object"];
(getPosATL _object select 2) - (getPos _object select 2) > 1E-5