[0.15] Event when vehicule stops somewhere

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Ellomir
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 23, 2017 8:08 am
Contact:

[0.15] Event when vehicule stops somewhere

Post by Ellomir »

Hi
I am developping a mod that activates inserters only when a proper target is in place (chest, assembling-machine, belt, etc).
When no target is in place, the inserter is just deactivated (LuaEntity.active = false)

I handle a lot of cases but one is bothering me:
When I put an inserter (picking coal from a chest) and the target position is an empty postion, the inserter is not active (that's good for me).
I want to detect when a vehicule stops in the target area of this inserter but I don't find any event for that.
Any idea ?

Edit: mod is https://mods.factorio.com/mods/Ellomir/SmarterInserter

Image

Post Reply

Return to “Modding discussion”