Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Anomaly on July 26, 2005, 10:47:31 AM

Title: Problems with NPC teleporting away
Post by: Anomaly on July 26, 2005, 10:47:31 AM
Hello,

I have some problems with NPC teleporting away and not always succeeds. I want my (non-joinable) NPC to teleport away (and to be deleted from the game) for some times before re-appearing.

I would like to know if I do this correctly.

My code is
ForceSpell(Myself, WIZARD_DIMENSION_DOOR)
CreateVisualEffectObject("SPDIMNDR", Myself)
DestroySelf()


But I have seen some other code which use DRYAD_TELEPORT spell ? Is it the same ? better ?

Can I get the teleport away animation without using CreateVisualEffectObject ?

Is "DestroySelf()" mandatory ? If I don't use it, will the npc be destroyed after all ? If not, since I can't see him anymore, where he is ?

Thanks in advance. :)
Title: Re: Problems with NPC teleporting away
Post by: Anomaly on July 26, 2005, 02:38:58 PM
My problem is now solved : I shouldn't have used "DestroySelf()".

ForceSpell(Myself, DRYAD_TELEPORT) alone does everything I want. ;)