A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Dynamic Time/Weather Script

Author Topic: Dynamic Time/Weather Script (1 messages, Page 1 of 1)
Moderators: Dennis

malolo420
Joined: Aug 5, 2007

Drugs are Bad


Posted: Jan 27, 2008 08:58 AM    Msg. 1 of 1       
I didn't personally test this in one of my maps, but in the map that the person I made the script for it seemed to sync well when we played the map.

Quote: 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)

)))

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:27 PM 140 ms.
A Halo Maps Website