lock ammo inside inventory & on_vehicle_ammo_inventory_changed

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 444
Joined: Thu Dec 21, 2017 8:02 am
Contact:

lock ammo inside inventory & on_vehicle_ammo_inventory_changed

Post 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.
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Post Reply

Return to “Modding interface requests”