RATDOG/_module/nss/lockflooddoor.nss
Jaysyn904 d168e90e83 Remade Dungeon Level One: Central
Remade Dungeon Level One: Central.  Added Didiamus' creature overrides.  Full compile.
2023-09-17 23:08:55 -04:00

22 lines
510 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC)) return;
if(GetLocalInt(oPC,"Trapped")==1) return;
object oTarget = GetObjectByTag("RustedDoor");
if(GetIsOpen(oTarget))
{
DelayCommand(3.0f,AssignCommand(oTarget, ActionCloseDoor(oTarget)));
}
DelayCommand(5.0f,SetLocked(oTarget, TRUE));
SetLocalInt(oPC,"Trapped",1);
}