On_Put_Item

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

On_Put_Item

Post by Nexela »

I would like to be able to use this event to cancel building an entity in the same manner as vanilla factorio when trying to build an item outside of the build distance (gives the clunk sound and doesn't allow building).

Something along the lines of Event On_Put_Item -> player.cancel_building()

The current way to accomplish this involves using on_built_entity and entity.destroy/player.insert but that plays the plop down sound.

Thank you for taking the time to look at this.

Post Reply

Return to “Modding interface requests”