mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 18:06:32 +03:00
Fix tame_dog errors
Tame_dog_old and player_tameDog are not used.
This commit is contained in:
@@ -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];
|
||||
};
|
||||
Reference in New Issue
Block a user