You are here

[horses] handling entering on area with X3_NO_HORSES

2 posts / 0 new
Last post
fot1
[horses] handling entering on area with X3_NO_HORSES

Hello,

I'm trying to modify one horse behavior. Instead of having the horse awaiting outside when entering on an area that horses are not allowed (for instance, a house, or any area really with X3_NO_HORSES), I want it to be despawned. However, I can't find the piece of script that defines the behavior of "leaving the party". Can someone point me out where it is? I suppose somewhere on the insanelly hard to read x3_inc_horses?

 

Thanks!

  • up
    50%
  • down
    50%
Mannast

I think you should use your own OnEnter script for the area, get the horse if present and use
HorseRemoveOwner(oHorse);
DestroyObject(oHorse, 0.5);

Portable Hole System, Scry and Teleport System, Throwing Objects, Prodding Traps, Portable Placeables and a Vanilla Basemodule, among other things

  • up
    50%
  • down
    50%