scottieo321
Well-Known Member
just one question for you xyberviri where is them lines which you posted as i cant see them anywhere in the files we got are you sure that is for this specific one and not another add AI thread?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if you had read through it its says anything under 6 kills everyone so just set resistance to 6 and it wont kill them survivors are classed as westHey! Got the whole thing working in one go. However, if faction is set to 0 they still kill survivors? :S
if you had read through it its says anything under 6 kills everyone so just set resistance to 6 and it wont kill them survivors are classed as west
/*
// if ((Player getVariable "SpareTime") > 0) then {...
//Usage: call compile preprocessFileLineNumbers "dayz_ai_functions.sqf";
*/
waituntil {!isnil "bis_fnc_init"};
// [] call BIS_fnc_help;
fnc_spawn_deathFlies = compile preprocessFileLineNumbers "compile\fn_spawn_deathFlies.sqf";
ai_fired = compile preprocessFileLineNumbers "compile\ai_fired.sqf";
ai_alertzombies = compile preprocessFileLineNumbers "compile\ai_alertzombies.sqf";
initialized = true;
_aiunit addEventHandler ["Fired", {_this call ai_fired;}]; // Unit firing catches zombies attention, like player
_aiunit addEventHandler ["Killed",{[_this,"banditKills"] call local_eventKill;}]; // Credit player for killing the AI bandit
_aiunit addEventHandler ["Killed",{_this call fnc_spawn_deathFlies;}]; // Spawn flies for AI bandit corpse
_aiunit addEventHandler ["Killed",{(_this select 0) setDamage 1;}]; // (?)
// Alert zombies if a weapon is fired
_aiunit addEventHandler ["Fired", {[(_this Select 0),100,true,(getPosATL (_this Select 0))] execvm "units\NPC_AlertZombies.sqf";}];
//_aiunit addEventHandler ["Fired", {diag_log format ["AIUNIT: Alert - unit is shooting shit - %1",_this];}]; // for testing eventhandler
diag_log format ["AIUNIT: Creating MPEvent Handler for %1 ",_aiunit];