generated from Jaysyn/ModuleTemplate
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name corps_raisdead
|
|
//:: FileName
|
|
//::
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Created from NW_S0_RaisDead by Bioware, this script raises
|
|
the creature associated with the corpse placeable.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Alexandre Brunel
|
|
//:: Created On: 21/04/2003
|
|
//:://////////////////////////////////////////////
|
|
#include "corpse_lib"
|
|
void main()
|
|
{
|
|
object oTarget = GetLocalObject(OBJECT_SELF,CorpseCreatureCorpse);//GetSpellTargetObject();
|
|
effect eRaise = EffectResurrection();
|
|
effect eVis = EffectVisualEffect(VFX_IMP_RAISE_DEAD);
|
|
|
|
if(GetIsDead(oTarget))
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(GetLocalObject(OBJECT_SELF,CorpseSpellCaster), SPELL_RAISE_DEAD, FALSE));
|
|
//Apply raise dead effect and VFX impact
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetLocation(oTarget));
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eRaise, oTarget);
|
|
}
|
|
}
|