Login  Register

Re: Friendly AI Bug

Posted by Haleks on Jul 31, 2013; 10:38am
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/Friendly-AI-Bug-tp3400p11098.html

Niceonegunit wrote
Haleks wrote
Reaperboyy wrote
.is there a way to change the zombies class...i mean like instead of zombies being classed as Civilians can they be classed as the enemy??
This is already done with daizy factions. If you guys had this problem playing that release (assuming you're not playing the bandit edition), the only reason I can think of is that your AI are out of ammo (wich can happen even with the ammo handling script).
Yes. Your ammo replenishment script is, no offence or nothin', primitive.


_unit addEventHandler ["Fired", {(_unit select 0) setvehicleammo 1}]

This works perfectly fine for me. The reason it didn't work in older DaiZy releases is because it was called with _this select 0. _this was not defined so it wouldn't have worked.
The only problem with the script you propose is that the AI will never have to reload its gun, meaning that they can hammer you with almost any gun. Wich is the reason why I'm using a different one : at least there's a chance to see the AI reloading its gun, leaving you some time to move or counter-attack.