Changed folder name.
Changed folder name.
This commit is contained in:
20
_module/nss/spawnhazelwitch.nss
Normal file
20
_module/nss/spawnhazelwitch.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
location lTarget;
|
||||
object oTarget;
|
||||
|
||||
//Can go on enter of an area or on enter of a tracks trigger.
|
||||
//Basically you spawn an npc, then after a while they dissapear.
|
||||
//This script will not spawn an npc if one already exist.
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject(),
|
||||
oObject = GetWaypointByTag("WP_hazelthewitch_01");
|
||||
|
||||
if (!GetIsObjectValid(GetNearestObjectByTag("hazelthewitch", oObject)))
|
||||
{
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "hazelthewitch", GetLocation(oObject));
|
||||
}
|
||||
|
||||
oTarget = GetObjectByTag("hazelthewitch");
|
||||
|
||||
DelayCommand(3280.0, DestroyObject(oTarget, 0.0));
|
||||
}
|
Reference in New Issue
Block a user