Dick Cheney
Member
Good Day,
Have been trying to figure out how to fix my SARGE AI.
Right now my code looks like this:
But when I have this, AI Helicopters fall out of the sky. So I then add the code to fix it from the README.
And use this:
Then when I log in players die instantly, over and over and over. Every 5 seconds.
Any love would be appreciated.
Have been trying to figure out how to fix my SARGE AI.
Right now my code looks like this:
Code:
class vehicle_cleanup
{
name = "vehicle_cleanup";
init = /*%FSM<STATEINIT""">*/"_safety = dayz_serverObjectMonitor;" \n
"" \n
"//Check for hackers" \n
" {" \n
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") ) then {" \n
" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
" (vehicle _x) setDamage 1;" \n
" _x setDamage 1;" \n
" };" \n
" } forEach allUnits;" \n
"" \n
But when I have this, AI Helicopters fall out of the sky. So I then add the code to fix it from the README.
And use this:
Code:
class vehicle_cleanup
{
name = "vehicle_cleanup";
init = /*%FSM<STATEINIT""">*/"_safety = dayz_serverObjectMonitor;" \n
"" \n
"//Check for hackers" \n
" {" \n
" if (!(vehicle _x in _safety) && ((typeOf vehicle _x) != ""ParachuteWest"") && (vehicle _x getVariable [""Sarge"",0] != 1) ) then {" \n
" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
" (vehicle _x) setDamage 1;" \n
" _x setDamage 1;" \n
" };" \n
" } forEach allUnits;" \n
"" \n
Then when I log in players die instantly, over and over and over. Every 5 seconds.
Any love would be appreciated.