Posts
588
Respect
659Add +1
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
just for good coding practice, in the event the user is doing it wrong ( which is often the case )
So it "doesnt" crash the game and still explains the issue
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
sorry, im pretty tired. i just had a coffee and i'll rewrite it
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
lol no biggy, just helping ya bro
it works either way, i call this "clean up". I often go back through my work multiple times after its finished and find the same kind of mistakes
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
a lot of the extra stuff was kinda a fail safe cause when testing i had multiple problems, like the model not disappearing and the power-up function running forever, but i'll see if i can make it all work better
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
remember some of it is prob just coding preference
I like to leave a "default" path, for if other checks failed. thats why i changed that last statement from if 1 2 3 to
if 0 or 1 or "any other"
then even if a bad value gets passed, should still default
learned a lot about this kind of thing with case statements
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
also a little problem on your end, you had the random range with 1 number, but luckily i picked up on that, anyway the new script works a little better then the last one. also for PrecacheModel, they should already be called in _zombiemode_powerups, so there shouldnt be a need to do it again, which i found through testing
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
what i meant is you said to use range by mistake, and i picked up on that and fixed it, otherwise it will always be 0 which makes it always max ammo