I'm trying to make a script that deletes an npc when the player leaves the area and then replaces it with a new one. Basically a quick respawn script.
Here is the script:
Scriptname AAAKillAndDisableWhenFarFromPlayer extends ObjectReference  
{Script that will kill and delete this alias/actor once it has gotten a certain distance from the player.}
ActorBase Property ZZZActorSpawnWinterhold auto
{This should point to your leveled list}
Event OnUnload()
    PlaceAtMe(ZZZActorSpawnWinterhold) ; spawn an Actor from the leveled list
    delete()
EndEvent

 » Sat May 18, 2013 12:35 am
  » Sat May 18, 2013 12:35 am 




