//SpeederChaseA //Manages spawning of speeder bikes that approach //and stop to fight. Basically making sure that there //are bikes for the player to use. state Base { Conditions { if Message "GenerateApproachers" == 1 goto Update } Actions { } } state Update { Conditions { if Message "GenerateApproachers" == 0 goto Base if Timer > 0 and if NumInSetAlive "1" < 2 and if NumInSetAlive "3" < 2 goto GenerateApproachers } Actions { } } state GenerateApproachers { Conditions { if Message "GenerateApproachers" == 0 goto Base } Actions { CreateSplineCreatures "type=SPEEDERBIKE" "spline=revpath_01" "looping" "script=ai_speederbike" "addtoset=1" "distance=50" "relative_to_player" Idle "mintime=0" "maxtime=2" CreateSplineCreatures "type=SPEEDERBIKE" "spline=revpath_02" "looping" "script=ai_speederbike" "addtoset=1" "distance=50" "relative_to_player" ResetTimer "mintime=-10" "maxtime=-5" SetState "Update" } }