Files
DayZ-Epoch/dayz_code/actions/dog/follow.sqf
2012-11-10 08:02:49 -06:00

16 lines
278 B
Plaintext

_dog = _this select 0;
_array = _this select 3;
_handle = _array select 0;
_whistle = _array select 1;
if(_whistle) then {
[nil,player,rSAY,["dog_callBack", 120]] call RE;
};
sleep 1;
if (_dog distance player <= 900) then {
_handle setFSMVariable ["_command","return"];
};