void main()
{

object oPC = GetPCSpeaker();

object oTarget = GetObjectByTag("Riago");

object oWP = GetWaypointByTag("WP_RiagoBones");
location lWP = GetLocation(oWP);
object oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "riagobones", lWP);

AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_RiagoEscape1"), TRUE));

DelayCommand(2.0, AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_RiagoEscape2"), TRUE)));

DelayCommand(5.0, AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_RiagoEscape3"), TRUE)));

DestroyObject(oTarget, 10.0);

}

