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