[0.15] Event when vehicule stops somewhere
Posted: Thu Aug 17, 2017 3:29 pm
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
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