on_collision event

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Simcra
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Wed Apr 06, 2016 6:05 am
Contact:

on_collision event

Post by Simcra »

For my mod I'm currently using on tick to determine whether a player is within range of an entity for teleportation, it would be much less of a waste of resources to have an event that triggers whenever two entities collide with each other. Obviously it would need to parse both of these entities as parameters to the event handler. It may even be an idea to allow this event to be called when a player collides with tiles that restrict player access such as water.

Post Reply

Return to “Modding interface requests”