Er... I don't think that if statement check out of the loop is necessary because obviously the condition would be fulfilled for the loop to break in the first place. Also, the flag_wait is helping, I will do a little bit more testing and then come back to y'all with my results.
The flag wait has eliminated jug turning on within 10 seconds of spawning in, but now jug will not turn on even if the conditions are met! For example, jug never turns on while firing in this script:
It prints "player has none", leading me to believe that there is something wrong with the variable player. I will try replacing player with players[0].
Well, with players[0] it still says "player has none". Yeah, I will make this work for all players or perhaps make it work for a player who does something special, but as of now I am only testing it for solo play.
Well, with players[0] it still says "player has none". Yeah, I will make this work for all players or perhaps make it work for a player who does something special, but as of now I am only testing it for solo play.
Is this script called before giving the default weapon to players? What if you just add a wait(10) or something to make it wait a little longer. Shot in the dark...
Um, yeah what jei9363 said.
Last Edit: April 15, 2014, 08:46:13 pm by MakeCents
Yes, the wait works and the script works perfectly with the colt! However, the game still does not recognize the turret as a weapon (when holding the turret the game froze for a second and then printed that I was holding a zombie_colt. Are there any possible workarounds? Regardless, I want to take this opportunity to thank you fine gentlemen for your spectacular help and support!
Yes, the wait works and the script works perfectly with the colt! However, the game still does not recognize the turret as a weapon (when holding the turret the game froze for a second and then printed that I was holding a zombie_colt. Are there any possible workarounds? Regardless, I want to take this opportunity to thank you fine gentlemen for your spectacular help and support!