23 lines
514 B
Plaintext
23 lines
514 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
// Get the PC who is in this conversation.
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
object oSelf = OBJECT_SELF;
|
||
|
|
||
|
object oTarget;
|
||
|
|
||
|
// Close and lock "exitdozr1x".
|
||
|
oTarget = GetObjectByTag("exitdozr1x");
|
||
|
AssignCommand(oTarget, ActionCloseDoor(oTarget));
|
||
|
SetLocked(oTarget, TRUE);
|
||
|
|
||
|
// Cutscene functions:
|
||
|
DelayCommand(1.5, SetCutsceneMode(oPC, FALSE));
|
||
|
|
||
|
// Destroy an object (not fully effective until this script ends).
|
||
|
DelayCommand(2.0, DestroyObject(oSelf));
|
||
|
}
|
||
|
|