34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
void main()
|
|
{
|
|
object oEntering = GetEnteringObject();
|
|
object oLight1 = GetObjectByTag("SparklingLight1");
|
|
object oLight2 = GetObjectByTag("SparklingLight2");
|
|
|
|
|
|
if(GetLocalInt(GetModule(), "WaterTrapLim") == 0)
|
|
{
|
|
AssignCommand(OBJECT_SELF, PlaySound("as_cv_metalfan"));
|
|
SetLocalInt(GetModule(), "WaterTrapLim", 1);
|
|
|
|
location Loc2= GetLocation(GetWaypointByTag("waterfalltrap1"));
|
|
location Loc3= GetLocation(GetWaypointByTag("waterfalltrap2"));
|
|
location Loc4= GetLocation(GetWaypointByTag("waterfalltrap3"));
|
|
location Loc5= GetLocation(GetWaypointByTag("waterfalltrap4"));
|
|
location Loc6= GetLocation(GetWaypointByTag("watertrap"));
|
|
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "roomfiller", Loc2);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "roomfiller", Loc3);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "roomfiller", Loc4);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "roomfiller", Loc5);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "waterlow", Loc6);
|
|
|
|
DelayCommand(60.0, ExecuteScript("watertrap2", OBJECT_SELF));
|
|
DelayCommand(120.0, ExecuteScript("watertrap3", oLight1));
|
|
DelayCommand(120.0, ExecuteScript("watertrap3", oLight2));
|
|
DelayCommand(150.0, ExecuteScript("watertrap4", OBJECT_SELF));
|
|
|
|
|
|
|
|
}
|
|
}
|