Exit Vehicle Event

Discussion in 'Plugin Development' started by GreySwordz, May 14, 2014.

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

    GreySwordz

    I have been messing around with players mounting mobs that can't normally be ridden i.e. a spider. Since they are not vehicles, the VehicleExitEvent doesn't work on them. Is there another, generic event which encompasses all dismounts? If not I'll have to have to use NMS to make all mobs rideable.
     
  2. Offline

    Windy Day


    Not that I'm aware of. You could listen for PlayerToggleSneakEvent which would get when they hit shift which is the dismount button. However, that method would probably not work every time because them might tap shift to dismount for a short enough time that the event isn't fired. Just an idea though.
     
  3. Offline

    GreySwordz

    That's what I was thinking. Looks like I'll just use NMS, thanks for the help anyways.
     
  4. Offline

    Windy Day

    Ok good luck
     
Thread Status:
Not open for further replies.

Share This Page