malolo420
January 27th, 2008, 08:48 AM
I wasn't going to release this because I made it for someones map.
But I'm starting to doubt they were going to give me credit for it so I'm releasing it. I personally havn't tested it but It seemed to work perfectly in his map.
Make 2 bsps, (the same one but different bsp files {for different skys make +sky in the second bsp +sk1)
Then make a biped and a vehicle out of view and 2 cutscene flags(1 where vehicle is and 1 ontop of biped), name the biped syncbip and the vehicle synchog and the flag at vehicle vehistart, and the other one killbip (for my script, you can change names).
Then just compile my script and it will switch skys every 5 minutes.
(global boolean is_server false)
(script continuous nightsky
(sleep_until (= (unit_get_health syncbip) 0) 15)
(if (= (structure_bsp_index) 0)
(begin
(set is_server true)
(switch_bsp 1)
(sleep 9000)
(object_create_anew syncbip)
)))
(script continuous killbiped
(if (= (unit_get_health syncbip) 0.0)
(begin
(object_teleport synchog killbip)
)))
(script continuous daysky
(sleep_until (= (unit_get_health syncbip) 1) 15)
(if (= (structure_bsp_index) 1)
(begin
(set is_server true)
(switch_bsp 0)
)))
(script continuous bipedkill
(if (= (unit_get_health syncbip) 1)
(begin
(set is_server true)
(sleep 9000)
(object_teleport synchog killbip)
(sleep 60)
(object_teleport synchog vehistart)
)))
But I'm starting to doubt they were going to give me credit for it so I'm releasing it. I personally havn't tested it but It seemed to work perfectly in his map.
Make 2 bsps, (the same one but different bsp files {for different skys make +sky in the second bsp +sk1)
Then make a biped and a vehicle out of view and 2 cutscene flags(1 where vehicle is and 1 ontop of biped), name the biped syncbip and the vehicle synchog and the flag at vehicle vehistart, and the other one killbip (for my script, you can change names).
Then just compile my script and it will switch skys every 5 minutes.
(global boolean is_server false)
(script continuous nightsky
(sleep_until (= (unit_get_health syncbip) 0) 15)
(if (= (structure_bsp_index) 0)
(begin
(set is_server true)
(switch_bsp 1)
(sleep 9000)
(object_create_anew syncbip)
)))
(script continuous killbiped
(if (= (unit_get_health syncbip) 0.0)
(begin
(object_teleport synchog killbip)
)))
(script continuous daysky
(sleep_until (= (unit_get_health syncbip) 1) 15)
(if (= (structure_bsp_index) 1)
(begin
(set is_server true)
(switch_bsp 0)
)))
(script continuous bipedkill
(if (= (unit_get_health syncbip) 1)
(begin
(set is_server true)
(sleep 9000)
(object_teleport synchog killbip)
(sleep 60)
(object_teleport synchog vehistart)
)))