ACE3/addons/core/functions/fnc_canInteractWith.sqf

12 lines
271 B
Plaintext
Raw Normal View History

// by commy2
2015-01-12 11:14:15 +00:00
#include "\z\ace\addons\core\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}