Thanks! For some reason I missed this permission system. Works perfectly and makes my life much easier.
Still probably worth looking into why the event is not fired when dropping on a transport belt.
Search found 2 matches
- Sat Jan 19, 2019 9:26 pm
- Forum: Modding help
- Topic: How to prevent a player from dropping items over a transport belt?
- Replies: 3
- Views: 1503
- Sat Jan 19, 2019 2:40 am
- Forum: Modding help
- Topic: How to prevent a player from dropping items over a transport belt?
- Replies: 3
- Views: 1503
How to prevent a player from dropping items over a transport belt?
Hi!
I've building a mod where I need to prevent a player from dropping items on the ground with the "Z" keystroke. The mod uses the god-controller so I cannot use set the drop_item_distance = 0 in the prototype.
This piece of code works most of the time:
script.on_event(defines.events.on_player ...
I've building a mod where I need to prevent a player from dropping items on the ground with the "Z" keystroke. The mod uses the god-controller so I cannot use set the drop_item_distance = 0 in the prototype.
This piece of code works most of the time:
script.on_event(defines.events.on_player ...