Respawn avec faction

Répondre
Partager Rechercher
Je cherche à faire un script qui fait respawner des créatures tout en gardant la faction. J'explique : j'ai mis un combat de rue dans mon module, les 2 persos s'entretuent, ils respawnent et reviennent au lieu du combat avec un waypoint. Mais ils ne s'attaquent plus

Mon script est :
Code PHP:

#include "NW_I0_GENERIC"

void VoidCreateObject(string sTemplatelocation lLocint bUseAppearAnimation=TRUE);
void main()
{


location lLoca GetLocation(GetObjectByTag ("NW_ondeath_assassin"));
float fSeconds 10.0//temps en secondes pour le respawn
string sTemplate "assassin001";

if(
GetSpawnInCondition(NW_FLAG_DEATH_EVENT))
{
SignalEvent(OBJECT_SELFEventUserDefined(1007));
}


{
SetIsDestroyable(FALSE);
AssignCommand(OBJECT_SELFDelayCommand(fSecondsVoidCreateObject(sTemplate,lLocaTRUE)));
}

}

void VoidCreateObject(string sTemplatelocation lLocaint bUseAppearAnimation=TRUE)
{
CreateObject(OBJECT_TYPE_CREATUREsTemplate,lLoca,TRUE);
SetIsDestroyable(TRUE);

Merci d'avance
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés