Aller au contenu

Photo

Spawn creature upon death?


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

#1
Legacy_of_Wrex

Legacy_of_Wrex
  • Members
  • 15 messages
Pretty much what the title says, I've created a hostile "Possessed Fighter" and upon his death, I want a "Ghastly Wraith" to spawn at his location. Scripts not being my strong side, but if it's possible, any help is appreciated. Still rather new at the whole scripting thing.

#2
Squatting Monk

Squatting Monk
  • Members
  • 446 messages
Just replace "resref" with the resref of your wraith (make sure to keep the quotation marks) and put this in the fighter's OnDeath slot:

void main()
{
    CreateObject(OBJECT_TYPE_CREATURE, "resref", GetLocation(OBJECT_SELF));
}

Modifié par Squatting Monk, 30 septembre 2012 - 11:51 .


#3
Legacy_of_Wrex

Legacy_of_Wrex
  • Members
  • 15 messages
Thanks alot, I'll try it immediatly!