Posts
63
Respect
14Add +1
Forum Rank
Rotting Walker
Primary Group
Member
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!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
self is 'level' here not a player or a zombie so that where things start to go wrong
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
"level" is a global function here, yea? I know with vars they are global if you use level on them, but what about functions?
Not sure what you mean, but he threaded his function from main() in his mapname.gsc. The main() function is called by 'level' so if you refer to self in there you refer to the level var.
If you mean that by using 'level.' you make a var global, and 'level' itself is also global but you cant use a function global if you thread/call it with 'level'
To the OP, for the wepaon you could do something like this ( or just set the damage really high in the weapon file ? )
You could also add your code in _spawner in the gib_on_damage function, that's allready watching each zomb for damage so it's easy to add in there as well.
From your mapname.gsc main() thread this:
And then add these functions:
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Not sure what you mean