I just realized that my player will have to be touching a pad, meaning that he won't be able to reach any other guns anyways. Thanks for trying to help though!
How do I make it so that a player can't pick up any "new weapons" (wall, box, etc.)?
EDIT: Also, in the function, which statement corresponds to which in-game event: "fake_death", "death", and "player_downed" to downing, bleeding out, and being revived?
be sure to thread it somewhere in your script where appropriate! Post Merge: April 18, 2014, 08:05:56 pmOh, one more thing: you also need to delete the shader, so add this line to the function:
Replace cherry_shader with the name of your shader.
Hey thanks bro! And yeah, I did start out trying to make the Origins style generators, but I eventually shifted into this. When I reveal my map I'll most definitely give you credit for this!
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!
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.
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].
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:
and jug never turns on while having the colt (the starting weapon) in this script:
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.
Well, I believe you are right. I tried the if statement with only the weapon check and jug turned on without me doing anything. However, when I made the if statement with only the isfiring check, jug still turned on with me doing anything, leading me to believe that there is a problem with both statements.