Is there a way to make it so npcs ignore certain players and not all of them?
[editline]06:57AM[/editline]
I have the script where it targets a player but what i am doing is making a zombie server and i don't want the zombies attacking a certain faction so how would i edit this
if ( !IsValid(enemy) or ( enemy:IsPlayer() and !enemy:Alive() ) ) then
if (!self.NextFindRandom or curTime >= self.NextFindRandom) then
zombieSchedule:EngTask("TASK_GET_PATH_TO_RANDOM_NODE", 512);
Use relationships.
I tried to put this function in and it didn't work
function makeNPClikeWAN(NPC)
NPC:AddRelationship("FACTION_WAN D_LI 99")
end