Page 1 of 1

lock ammo inside inventory & on_vehicle_ammo_inventory_changed

Posted: Tue Mar 12, 2019 5:06 pm
by ownlyme
For my laser gun mods it would be nice if the game had an implementation to disallow picking up the ammo in the players/vehicles ammo inventory
currently i have to use the event on_player_ammo_inventory_changed and check the cursor stack & entire player inventory, which results in a slight ups hit...
for my tanks i don't have a solution yet since there is no function called on_vehicle_ammo_inventory_changed.
possible would also be an item flag that removes any item that a player touches.. ?
thx for reading.