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 »Need help with a script for object_lists

Author Topic: Need help with a script for object_lists (3 messages, Page 1 of 1)
Moderators: Dennis

killer kiwi
Joined: Feb 10, 2007

live and let die


Posted: Jan 4, 2010 05:15 AM    Msg. 1 of 3       
ok is there a way to make a object_list in a script. Wee looked awhile ago but didnt come up with a answer to this.

or is there a way to to find out if a vehilce is in a trigger volume without checking for each one.


chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Jan 4, 2010 05:07 PM    Msg. 2 of 3       
Like any vehicle? I'm not sure if this is the right way, but this is how I'm doing mine in my upcoming map.

(global object_name hogs "hog_0")
(global short hognum 0)

(script continuous increase_hogs
(set hognum (+ hognum 1))
)

(script continuous set_hogs
(if (= hognum 1) (set hogs "hog_1") )
(if (= hognum 2) (set hogs "hog_2") )
(if (= hognum 3) (set hogs "hog_3") )
(if (= hognum 4) (set hogs "hog_4") )
(if (= hognum 5) (set hogs "hog_5") )
(if (= hognum 6) (set hogs "hog_6") )
(if (= hognum 7) (set hogs "hog_7") )
(if (= hognum 8) (set hogs "hog_8") )
(if (= hognum 9) (set hogs "hog_9") )
(if (= hognum 10) (set hogs "hog_10") )
(if (= hognum 11) (set hogs "hog_11") )
(if (= hognum 12) (set hogs "hog_12") )
(if (= hognum 13) (set hogs "hog_13") )
(if (= hognum 14) (set hogs "hog_14") )
(if (= hognum 15) (set hogs "hog_15") )
(if (= hognum 16) (set hogs "hog_16") )
(if (= hognum 17) (set hogs "hog_17") )
(if (= hognum 18) (set hogs "hog_18") )
(if (= hognum 19) (set hogs "hog_19") )
(if (= hognum 20) (set hogs "hog_20") )
(if (= hognum 21) (set hogs "hog_21") )
(if (= hognum 22) (set hogs "hog_22") )
(if (= hognum 23) (set hogs "hog_23") )
(if (= hognum 24) (set hogs "hog_24") )
(if (= hognum 25) (set hognum 0) )
)

(script continuous script_name
(if (and (= is_host 1) (volume_test_object trigger_volume_name hogs ) )
(begin
; Stuff here
)
)


killer kiwi
Joined: Feb 10, 2007

live and let die


Posted: Jan 4, 2010 05:39 PM    Msg. 3 of 3       
Not quite a object_list be it is still a ver nice work around and is very close to what I am needing for a script that i am making for a upcomming map.

Thanks again and that has solved a probulm that we have worked on for over two and half years now.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 3:16 AM 94 ms.
A Halo Maps Website