Page 1 of 1

on_collision event

Posted: Fri May 27, 2016 10:47 am
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.