ACE3/addons/core/functions/fn_canInteractWith.sqf

11 lines
220 B
Plaintext

// by commy2
private ["_unit", "_target", "_owner"];
_unit = _this select 0;
_target = _this select 1;
_owner = _target getVariable ["AGM_isUsedBy", objNull];
isNull _owner || {_unit == _owner} || {!isPlayer _owner}