Reload Ammo
⚠️ This is a depreciated legacy system.
It is queued for complete rework, and currently unsupported.
Description
will search the caster's inventory for the configured ammo item (or another item if overridden), and for each item it finds it will consume it and add ammo to the item.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| time | t | The time in ticks it takes to complete the operation | 20 |
| reloadskill | onreload, reload | Metaskill to execute once the reload is completed | |
| reloadfullskill | onreloadfull, onfull | Metaskill to execute if the gun is already full | |
| reloadfailskill | onreloadfail, onfail | Metaskill to execute if the reload fails |
Examples
Skills:
- reloadammo{sync=false;
onReload=TestGun-Reload;
onFail=TestGun-Reload-Fail;
onFull=TestGun-Reload-Full
} @self ~onSwing
Aliases
- loadAmmo