ACE3/addons/common/functions/fnc_carriedByObj.sqf

13 lines
344 B
Plaintext
Raw Normal View History

2015-01-16 23:21:47 +00:00
/**
* fn_carriedByObj.sqf
* @Descr: Check if object A is being carried by object B.
* @Author: Glowbal
*
* @Arguments: [object OBJECT, unit OBJECT]
* @Return: BOOL True if B is carrying A.
* @PublicAPI: true
*/
#include "script_component.hpp"
2015-01-17 12:54:44 +00:00
([(_this select 0)] call FUNC(getCarriedBy) == [(_this select 1)] call FUNC(getCarriedBy));