Thanks ill give that a go Double Post Merge: November 24, 2015, 05:28:18 pmHmm its still doing the same thing with your changes.
Maybe add another check then?
it seems that it is deleting due to that line, and maybe you have a typo in your kvp in radiant, or more than one of those triggers, or something, and trig isn't defined since you had it backwards (the original post had it backwards too) and in quotes... What is your kvp for that trigger in radiant? If that check addition stops it from deleting at all, I would guess that trig is not defined then.
Edit: Your kvp should be "grenade_check_trig" since that is the string you are passing.
For multiple triggers try something like:
Title: Re: MOTD Grenade Pit
Post by: MZslayer11 on November 25, 2015, 03:58:30 am
Alright its is almost working properly with the stuff that MakeCents posted (the multiple triggers one). For some reason, it gives me 40 points when I throw it into the pit, and when I do not throw it in the pit, it doesn't get deleted (yay), but it gives me 40 points when it explodes. :o
this is the exact code i'm using now:
Under maps\_zombiemode::main();
Bottom of file:
I have two trigger multiples in radiant with the KVP:
WTF is wrong now lol?
Title: Re: MOTD Grenade Pit
Post by: MakeCents on November 25, 2015, 04:38:41 am
You should only have one trig unless you have multiple places you can do this at. When you say you have two, are they at the same place or touching? If they are touching, then that is why prob, delete one. If the triggers are in different places then it could also need another check, try:
Title: Re: MOTD Grenade Pit
Post by: MZslayer11 on November 25, 2015, 04:40:54 am
You should only have one trig unless you have multiple places you can do this at. When you say you have two, are they at the same place or touching? It could also need another check, try:
yeah they are at two seperate places. Ill give that a try. Double Post Merge: November 25, 2015, 04:53:04 amThank you so much, that got it working +1!