17 lines
354 B
Plaintext
17 lines
354 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);
|
|
}
|
|
|
|
// whatever else on enter you do
|
|
}
|
|
|