Page 1 of 1

bsp switching

Posted: Tue Oct 09, 2007 2:11 pm
by Keeywi
ok, i got a multi BSP map, and i need to be able to switch bsp (back and forth), but one of the scripts doesnt work, so im going to show the one that works, the one that doesn't, and the error

the one that works

Code: Select all

(script continous omgl33thax)
(sleep_untill (volume_test_objects bsptrigger0 (players))
(switch_bsp 0)
)

the one that doesn't work

Code: Select all

(script continous omgl33thax)
(sleep_untill (volume_test_objects bsptrigger1 (players))
(switch_bsp 1)
)
the error

Code: Select all

[ENTER_BSP1 line 1] script type must be "startup", "dormant", "continuous", or "static".: continous omgl33thax)
 recompiling scripts after scenarios were merged.
 script type must be "startup", "dormant", "continuous", or "static".: continous omgl33thax)



Posted: Tue Oct 09, 2007 2:25 pm
by bricksarefun
Learn to spell continuous.

Posted: Tue Oct 09, 2007 2:26 pm
by Keeywi
o ****, thanks so much


wait a sec, now it gives me this

10.09.07 18:28:01 [ENTER_BSP1 line 1] i expected (script <type> <name> <expression(s)>): (script continuous omgl33thax)
10.09.07 18:28:01 recompiling scripts after scenarios were merged.
10.09.07 18:28:01 i expected (script <type> <name> <expression(s)>): (script continuous omgl33thax)

Posted: Wed Oct 10, 2007 1:15 pm
by Keeywi
sorry, had to bump

Posted: Wed Oct 10, 2007 2:55 pm
by Andrew_b

Code: Select all

(script continuous bspswitch1
   (sleep_until (volume_test_objects switch1 (players))15)
      (switch_bsp 1)
)
Learn to not close your (script) line until the end of the script.

Posted: Wed Oct 10, 2007 4:58 pm
by Keeywi
whats the 15 for?

(script continuous bspswitch1
(sleep_until (volume_test_objects switch1 (players))15)
(switch_bsp 1)
)

Posted: Wed Oct 10, 2007 9:22 pm
by Andrew_b
like 30 tics = 1 sec.

This searches for the player ever 1/2 second.

Posted: Thu Oct 11, 2007 11:31 am
by not_quite_a_nice_guy
Oh, That is interesting.