Battledale_PRC8/_module/nss/jw_anymobopendr.nss

11 lines
236 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oPC = GetEnteringObject();
object oDoor = GetNearestObject(OBJECT_TYPE_DOOR, OBJECT_SELF, 1);
if (GetIsObjectValid(oPC))
{
SetLocked(oDoor, 0);
ActionOpenDoor(oDoor);
}
}