16 lines
341 B
Plaintext
16 lines
341 B
Plaintext
|
void main()
|
||
|
{
|
||
|
AssignCommand(OBJECT_SELF, PlaySound("as_cv_winch1"));
|
||
|
if (GetLocalInt(GetModule(),"KValves")==3)
|
||
|
{
|
||
|
SetLocalInt(GetModule(),"KValves",4);
|
||
|
object oDoor1 = GetObjectByTag("WaterTrapDoor");
|
||
|
DelayCommand(3.0, SetLocked (oDoor1, FALSE));
|
||
|
DelayCommand(3.0, ActionOpenDoor(oDoor1));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
SetLocalInt(GetModule(),"KValves",5);
|
||
|
}
|
||
|
}
|