Keep an entity from dropping a target.

Discussion in 'Plugin Development' started by Taco, Aug 12, 2011.

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

    Taco

    It seems that certain entities (spiders as an example) occasionally drop the target they're after randomly if the target isn't hostile. For example a spider could be targeting a pig, attack it once and then walk off like nothing happened. I don't know what to do about this, I've even gone so far as to give the pig a 3DS and hope that made the spider jealous enough to kill it, but still no luck.
     
    fofogogo23 likes this.
  2. Offline

    nisovin

    You need to cancel the EntityTarget event when the reason is FORGOT_TARGET.
     
  3. Offline

    Taco

    Thanks, I'll give that a shot!

    Edit: That worked, thank you!
     
  4. I laughed... hard.
     
Thread Status:
Not open for further replies.

Share This Page