21 lines
363 B
Plaintext
21 lines
363 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC=GetLastOpenedBy();
|
||
|
|
||
|
object oKey=GetItemPossessedBy(oPC,"key");
|
||
|
|
||
|
while (GetIsObjectValid(oKey))
|
||
|
{
|
||
|
DestroyObject(oKey);
|
||
|
oKey=GetItemPossessedBy(oPC,"key");
|
||
|
}
|
||
|
|
||
|
object oObject=OBJECT_SELF;
|
||
|
|
||
|
DelayCommand(5.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
|
||
|
DelayCommand(5.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
|
||
|
|
||
|
//
|
||
|
}
|