Link

Weapons and ammo


get_weapon_ammo_count

int get_weapon_ammo_count(ObjectPtr weapon)

This also allows to get current charges of a misc item (Geiger counter, etc).


get_weapon_ammo_pid

int get_weapon_ammo_pid(ObjectPtr weapon)

set_weapon_ammo_count

void set_weapon_ammo_count(ObjectPtr weapon, int count)

This also allows to set current charges of a misc item (Geiger counter, etc).


set_weapon_ammo_pid

void set_weapon_ammo_pid(ObjectPtr weapon, int pid)