ACE3/addons/common/functions/fnc_canInteractWith.sqf
2015-01-13 20:56:02 +01:00

12 lines
252 B
Plaintext

// by commy2
#include "script_component.hpp"
private ["_unit", "_target", "_owner"];
_unit = _this select 0;
_target = _this select 1;
_owner = _target getVariable ["ACE_isUsedBy", objNull];
isNull _owner || {_unit == _owner} || {!isPlayer _owner}