weapon_spawns = GetEntArray( "weapon_upgrade", "targetname" ); // gets all entities with the targetname of "weapon_upgrade"
for( i = 0; i < weapon_spawns.size; i++ ) { hint_string = weapon_spawns[i].zombie_weapon_upgrade; // gathers the kvp "zombie_weapon_upgrade" if(hint_string == "tesla_gun") // checks if thats the wonderwaffle { weapon_spawns[i] waittill("trigger"); // waits till the trigger is hit weapon_spawns[i] trigger_off(); // turns off the trigger break; // stops the for loop
DD is right in some part. It limits, so other players cant get Wunderwaffe, only one person can have it at time (havent tested with box with this code on) Well, I had this problem and I asked it in here and removing that made Wunderwaffe buyable again
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time