11 lines
255 B
Plaintext
11 lines
255 B
Plaintext
void main()
|
|
{
|
|
object oPC=GetExitingObject();
|
|
object oTrigger=OBJECT_SELF;
|
|
if (GetIsPC(oPC))
|
|
{ // is exiting PC
|
|
object oNPC=GetLocalObject(oTrigger,"oNPC");
|
|
if (GetIsObjectValid(oNPC)) DestroyObject(oNPC);
|
|
} // is exiting PC
|
|
}
|