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. |
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. |
Does it save over games?
i cant see anything that would make it do that
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. |
i cant see anything that would make it do that
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. |
is there a way to make that happen? if so that would be amazing
is there a way to make that happen? if so that would be amazing
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. |
First off, you'd need to get an array of weapons and a free or unsused stat slot.
In this example, I'll use 3005.
(for those who don't know, stats store an int which can persist on a player profile permamently in a mod unless the player removes mod's respective mpdata000 file)
level.zombie_weapons is the array which keeps all the weapons.
So, here, I'm going to find the weapon that player wants to put in (player being the player entity):
This will set the weapon's index to 3005 slot.
Now, you probably are wondering, how do you know what is the weapon that the player has put in? Well, there's GetStat
And that's how you can use stats for the weapon cabinet
Forgive me if I wasn't clear enough, I'm really tired today but I hope it helped you.
You can use 3006 and 3007 for storing weapon ammo info.
Also, I would recommend using 3008 for storing info if there is a weapon in the cabinet
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. |
First off, you'd need to get an array of weapons and a free or unsused stat slot.
In this example, I'll use 3005.
(for those who don't know, stats store an int which can persist on a player profile permamently in a mod unless the player removes mod's respective mpdata000 file)
level.zombie_weapons is the array which keeps all the weapons.
So, here, I'm going to find the weapon that player wants to put in (player being the player entity):
This will set the weapon's index to 3005 slot.
Now, you probably are wondering, how do you know what is the weapon that the player has put in? Well, there's GetStat
And that's how you can use stats for the weapon cabinet
Forgive me if I wasn't clear enough, I'm really tired today but I hope it helped you.
You can use 3006 and 3007 for storing weapon ammo info.
Also, I would recommend using 3008 for storing info if there is a weapon in the cabinet
well i dont understand 100% but i'll test out this later on and see if i can get this working. but i wanna know, would this carry it on between maps? cause if so i'd probably wouldn't use this since most maps would have different guns. it could work for a bo2 style bank though
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. |
It will be only within the same mod.
that's awesome! i'll try it out later when i'm less tired, thank you a lot!
EDIT: one more thing, what is the default of the stat?