14 lines
193 B
Plaintext
14 lines
193 B
Plaintext
|
void lockDoor()
|
||
|
{
|
||
|
ActionCloseDoor( OBJECT_SELF );
|
||
|
SetLocked( OBJECT_SELF, TRUE );
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
if (GetIsPC(GetLastUsedBy()))
|
||
|
{
|
||
|
DelayCommand(5.0, lockDoor() );
|
||
|
}
|
||
|
}
|