Tim
Member
Hello i was trying to make my mannquin to be able to use deed outside of the house. But every edit i have made to get the house check method deleted . It still wants to Just target the house . I have narrowed the code down to this
How could i change this to target to Ground other then the house ?
something like
if (targeted is NonStaticTarget)
dont work either . Any ideas?
Code:
protected override void OnTarget(Mobile from, object targeted)
{
if (targeted is StaticTarget)<<<<<<<<
{
Point3D p = new Point3D((IPoint3D)targeted);
{
DonationMannequin m = (DonationMannequin)Activator.CreateInstance(typeof(DonationMannequin), new object[] { from });
m.MoveToWorld(p, from.Map);
m.Direction = Direction.South;
mDeed.Delete();
}
}
else if (targeted is Item)
{
How could i change this to target to Ground other then the house ?
something like
if (targeted is NonStaticTarget)
dont work either . Any ideas?