Initial Upload
Initial Upload
This commit is contained in:
16
_module/nss/_area_on_enter_m.nss
Normal file
16
_module/nss/_area_on_enter_m.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oArea = OBJECT_SELF;
|
||||
|
||||
if (!GetIsDM(oPC) && GetLocalInt(oArea,"Spawner") == 0)
|
||||
{
|
||||
object oLoc = GetNearestObjectByTag("WP_RESPAWN", oPC);
|
||||
location lLoc = GetLocation(oLoc);
|
||||
CreateObject(OBJECT_TYPE_PLACEABLE,"arearespawn",lLoc);
|
||||
SetLocalInt(oArea,"Spawner",1);
|
||||
}
|
||||
|
||||
ExploreAreaForPlayer(oArea, oPC);
|
||||
}
|
||||
|
Reference in New Issue
Block a user