I try to make so to get a gun you will have to kill 3 zombies inside a trigger radius and it will continue its function.
So I made a for loop that will loop 3 times and checked if the zombies are touching the trigger, and then it waits till the zombie will die, then it will give an upgraded m9. But after 3 kills, it doesn't continue its function, why doesn't it do that?
The trigger does disables itself and takes the weapon but it doesn't count the kills. Thanks in advance.
Edit: it is a trigger_radius that checks if the zombies are touching the trigger, and a trigger_use that will take the weapon and after 3 kills the triger_use will give a weapon.
I don't know what you have ice_radius defined to so just add that somewhere in function. This should work if not just let me know and I can try to adjust it a bit. Made basically off of your script. Also don't worry you will get the hang of coding fast. I remember trying to first code. But good luck.
I don't know what you have ice_radius defined to so just add that somewhere in function. This should work if not just let me know and I can try to adjust it a bit. Made basically off of your script. Also don't worry you will get the hang of coding fast. I remember trying to first code. But good luck.
My best bet and this is what I usually do when I run into errors where something is incorrectly function is adding self iPrintLn( "1" ); then 2... and it helps to figure if something is going on wrong. But try that out possibly. Even though you have not tried it just yet does it show the model after? Edit: Also make sure you have ice_radius defined or in "".
Okey I added iprintln and I added it after were you check if the zombies are touching the trigger. And ingame it doesn't checks if the zombies are touching the trigger apperently because the iprintln doesn't show.
It works until the model shows and it takes the weapon too. But it seems to stop at between the istouching check and where the for loop starts.
What is ice_radius set to. What I mean by this is it in "" or is it defined like ice_radius = Whatever; My second guess would be is it only checks Zomb[0] then stops like that but I don't believe it will do this.
What is ice_radius set to. What I mean by this is it in "" or is it defined like ice_radius = Whatever; My second guess would be is it only checks Zomb[0] then stops like that but I don't believe it will do this.
The ice_radius is this, and the kvp's in radian is correct, and it is a trigger radius I use for that.