20 lines
442 B
Plaintext
20 lines
442 B
Plaintext
#include "nw_i0_plot"
|
|
#include "rd_misc"
|
|
|
|
void main()
|
|
{
|
|
object oSelf;
|
|
object oSpawnPoint;
|
|
string sDestTag;
|
|
|
|
oSelf = OBJECT_SELF;
|
|
|
|
sDestTag="rd_hench_death";
|
|
oSpawnPoint = GetObjectByTag(sDestTag);
|
|
AssignCommand(oSelf,JumpToLocation(GetLocation(oSpawnPoint)));
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectResurrection(),oSelf);
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oSelf)), oSelf);
|
|
RemoveEffects(oSelf);
|
|
}
|