18 lines
326 B
Plaintext
18 lines
326 B
Plaintext
//Put this script OnClick or OnFailToOpen
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetClickingObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
DelayCommand(10.0, SetLocked(OBJECT_SELF, FALSE));
|
|
|
|
DelayCommand(11.0, ActionOpenDoor(OBJECT_SELF));
|
|
|
|
DelayCommand(40.0, ActionCloseDoor(OBJECT_SELF));
|
|
|
|
DelayCommand(41.0, SetLocked(OBJECT_SELF, TRUE));
|
|
|
|
}
|