Please can you tell me
A simple way to do it is just to make a script on the player unit that sets the quantity of this entity’s currently held item to its max quantity, then add a keybind on the unit that runs this script when the player presses a key (e.g. when they press R). This will make it so the item’s ammo instantly refills when the player presses R.
Another way to do it is to add an attribute on your unit which will used for keeping track of the time that the player is reloading for, and set the regeneration rate of the attribute to some positive number. Then, in your reload script you can just put an action that sets the attribute to 0, and you can make a new script that triggers when the attribute is full and refills the unit’s ammo.
i need dashcuby’s permission
How To do the max quantity?
Go to your game, and click Entities, then scroll until you find an item, click on it and set its max quantity to any (such as 10)
how to do max quantity