EN4_PRC8/_module/nss/rd_hiredeath.nss

21 lines
462 B
Plaintext
Raw Permalink Normal View History

#include "nw_i0_plot"
#include "rd_misc"
void main()
{
object oSelf;
object oSpawnPoint;
string sDestTag;
oSelf = OBJECT_SELF;
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectResurrection(),oSelf);
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oSelf)), oSelf);
RemoveEffects(oSelf);
sDestTag="rd_hench_death";
oSpawnPoint = GetObjectByTag(sDestTag);
DelayCommand(1.0f,AssignCommand(oSelf,JumpToLocation(GetLocation(oSpawnPoint))));
}