ammo_api
¶
the API for defining unique ammunition
| Guns4d.ammo.initialize_mag_data() | initializes a magazine's data |
| Guns4d.ammo.update_mag() | register a magazine so it can be filled with bullets and loaded into a gun |
| Guns4d.ammo.register_magazine() | register a magazine so it can be filled with bullets and loaded into a gun |
initializes a magazine's data
| itemstack | (itemstack) | |
| meta | (meta) | (optional) |
register a magazine so it can be filled with bullets and loaded into a gun
| def | () | |
| itemstack | (itemstack) | |
| meta | (metadataref) | (optional) just passes it to be used so get_meta() isn't called more then once if it's already yhere |
| (itemstack) |
register a magazine so it can be filled with bullets and loaded into a gun