Owner_Abaddon
Wanderer
Mounted NPC
can someone point me into the direction for a mounted npc script (checked savage rider script but it doesn't show how to specify what mount to use). I found this part
Now, if I'm correct all this does is deletes the mount when the rider is killed. What I'm trying to do is make it where the rider has to be killed in order to tame the mount, but I can't find how to specify what mount the rider is on. Now, as for having the mount remain, I'm guessing that I change
to this
and that will leave the mount behind.
can someone point me into the direction for a mounted npc script (checked savage rider script but it doesn't show how to specify what mount to use). I found this part
Code:
public override bool OnBeforeDeath()
{
IMount mount = this.Mount;
if ( mount != null )
mount.Rider = null;
if ( mount is Mobile )
((Mobile)mount).Delete();
return base.OnBeforeDeath();
}
Now, if I'm correct all this does is deletes the mount when the rider is killed. What I'm trying to do is make it where the rider has to be killed in order to tame the mount, but I can't find how to specify what mount the rider is on. Now, as for having the mount remain, I'm guessing that I change
Code:
if ( mount is Mobile )
((Mobile)mount).Delete();
to this
Code:
if ( mount is Mobile )
((Mobile)mount).Delete(false);
and that will leave the mount behind.