17 lines
355 B
Plaintext
17 lines
355 B
Plaintext
|
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);
|
||
|
}
|
||
|
|