Which event should I use for when a player touches an entity?

Discussion in 'Plugin Development' started by NonameSL, Dec 10, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    NonameSL

    I am looking for an event, that's fired the second an entity touches another entity / player touches entity.
    I am not looking for when a player clicks on an entity, I am trying to find when a physical interaction is happening between 2 entities. Which event should I use?

    Thanks in advance.
    - SL
     
  2. Offline

    Skionz

    @NonameSL There is no event. Use a scheduler which checks if the player is inside of an entity. You should be able to figure it out.
     
  3. Offline

    mine-care

    @Skionz but wouldn't that be laggy checking for every player is the nearest entity is "tourching" him and if it is do stuff?
    But yes it's clearly better than move event :3
     
  4. Offline

    xTigerRebornx

    teej107, Skionz and mythbusterma like this.
Thread Status:
Not open for further replies.

Share This Page