Aller au contenu

Photo

Resurrection Fails


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Nebril2

Nebril2
  • Members
  • 59 messages

Hi all!

 

 

 

Every time i try to use EffectResurrection() on a creature it doesn nothing. 

 

I created an item wich apply the effect when used in a creature, and again, does nothing. 

 

Quote

 

#include "x2_inc_switches"

#include "70_inc_spells"
#include "x2_inc_spellhook"
void main()
{
 
int nEvent =GetUserDefinedItemEventNumber();
if(nEvent !=  X2_ITEM_EVENT_ACTIVATE)return;
 
 
  object oPC = GetItemActivatedTarget();
 
  ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectResurrection(), oPC);
 
 
 
 
 
 
 
}

 

I use it on creatures that has the No permanent death unchecked.  And they leaves a lootable corpse, where i use the item.

 

And also i used it on a zombie, wich after 20 seconds of death (delayCommand) should resurrect! but nothing.

 

why?

 



#2
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Try this...

 

Spoiler


#3
Nebril2

Nebril2
  • Members
  • 59 messages

The problem was the "looteable corpse" check. It seems like its counted as a placeable once dead, and cant be resurrected. 

 

Ty for your answer anyway :)



#4
Pstemarie

Pstemarie
  • Members
  • 2 745 messages

Glad you got it worked out.