Aller au contenu

Photo

EffectResurrection() dosnt works?


  • Veuillez vous connecter pour répondre
1 réponse à 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. 

 

 

#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
rjshae

rjshae
  • Members
  • 4 485 messages

It should work. Does it need to be SetCommandable perhaps?