bsp switching

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
Keeywi





Posts: 100
Joined: Mon Apr 23, 2007 1:36 pm

bsp switching

Post 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)


User avatar
bricksarefun
Readers Club





Posts: 411
Joined: Mon Feb 26, 2007 7:19 pm
Location: Behind 7 proxies

Post by bricksarefun »

Learn to spell continuous.
ImageImage
iGeo wrote:And why the hell do you yanks have your flag like EVERYWHERE... do you forget what country you're in or something?
Keeywi





Posts: 100
Joined: Mon Apr 23, 2007 1:36 pm

Post 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)
Keeywi





Posts: 100
Joined: Mon Apr 23, 2007 1:36 pm

Post by Keeywi »

sorry, had to bump
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post 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.
Keeywi





Posts: 100
Joined: Mon Apr 23, 2007 1:36 pm

Post by Keeywi »

whats the 15 for?

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




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

like 30 tics = 1 sec.

This searches for the player ever 1/2 second.
not_quite_a_nice_guy





Posts: 178
Joined: Fri Aug 26, 2005 12:54 am

Post by not_quite_a_nice_guy »

Oh, That is interesting.
Post Reply