11 lines
236 B
Plaintext
11 lines
236 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetEnteringObject();
|
||
|
object oDoor = GetNearestObject(OBJECT_TYPE_DOOR, OBJECT_SELF, 1);
|
||
|
if (GetIsObjectValid(oPC))
|
||
|
{
|
||
|
SetLocked(oDoor, 0);
|
||
|
ActionOpenDoor(oDoor);
|
||
|
}
|
||
|
}
|