HiddenTradition_PRC8/_module/nss/ro_d1_hen_fired.nss

39 lines
781 B
Plaintext
Raw Permalink Normal View History

//:://////////////////////////////////////////////////
//:: X0_D1_HEN_FIRED
//:: Copyright (c) 2002 Floodgate Entertainment
//:://////////////////////////////////////////////////
/*
Fires the current henchman and leaves the player with
no henchman.
*/
//:://////////////////////////////////////////////////
//:: Created By: Naomi Novik
//:: Created On: 09/13/2002
//:://////////////////////////////////////////////////
#include "x0_i0_henchman"
void main()
{
ClearAllActions();
FireHenchman(GetPCSpeaker());
object oTarget;
oTarget = OBJECT_SELF;
DestroyObject(oTarget, 0.0);
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("WP_HENCHMAN_RESPAWN");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "henrsref", lTarget);
}