Fix tame_dog errors

Tame_dog_old and player_tameDog are not used.
This commit is contained in:
ebaydayz
2016-04-18 21:49:27 -04:00
parent 464c26861c
commit 4d5dc060d2
8 changed files with 29 additions and 104 deletions

View File

@@ -11,7 +11,9 @@ _handle setFSMVariable ["_watchDog",_watchDog];
_warn = {
private ["_watchDog","_dog","_nearby","_senseSkill","_handle"];
_handle = _this select 0;
_handle = _this select 0;
_watchDog = _this select 1;
_dog = _this select 2;
while {_watchDog && alive _dog} do {
_watchDog = _handle getFSMVariable "_watchDog";
_senseSkill = _handle getFSMVariable "_senseSkill";
@@ -28,7 +30,7 @@ _warn = {
if (_watchDog) then {
_handle setFSMVariable ["_idleTime",5];
[_handle] spawn _warn;
[_handle,_watchDog,_dog] spawn _warn;
} else {
_handle setFSMVariable ["_idleTime",1];
};