Posts
1,322
Respect
138Add +1
Forum Rank
Zombie Colossus
Primary Group
Nuclear
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. | |
Nuclear | DARKLEGION's requested title |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Nuclear | DARKLEGION's requested title |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
would take away a weapon with a weapon file called current_weapon from the player, which does obviouly not exist.
You probably want something like this:
If you mean (by "get up"), after the player is revived, you could also call GetWeaponsListPrimaries() and remove a weapon from that list if it contains 3.
- Phil.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
the question is where i put that in laststand.gsc or zombiemode.gsc?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Nuclear | DARKLEGION's requested title |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. |
You put it wherever your TakeWeapon code already is... "current_weapon" is not a valid parameter for TakeWeapon. You have to use a valid gun name and the player has to have the gun in order for it to do anything. current_weapon = self GetCurrentWeapon() sets the variable to the string name of whatever gun the player is holding when the function runs. Then self TakeWeapon(current_weapon) will take that gun name from the player.