How would I use your script to check if it's them? Would I do (position _ai) nearEntities [[zZombieBase],_detectRange];?
Code:
_entity_array = (position _ai) nearEntities [["Bandit1_DZ","BanditW1_DZ"],_detectrange];
for Zeds and Bandits:
Code:
_entity_array = (position _ai) nearEntities [["zZombieBase","Bandit1_DZ","BanditW1_DZ"],_detectrange];
pay attention to the detectrange, if you set it too high the function will slow down.
I also dont run this on every member of my groups ... to gain performance again ...