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 »scripting

Author Topic: scripting (3 messages, Page 1 of 1)
Moderators: Dennis

klasher1000
Joined: Nov 1, 2012


Posted: Nov 21, 2012 12:41 PM    Msg. 1 of 3       
UGH this is driving me nuts i cant figure it out help please!!! I am putting custom vehicles in my maps and i cant figure out how to make more than 6 spawn. also i want to change the name so it doesnt say need a string or whaterver. help please!!


nihao123456ftw
Joined: Mar 24, 2012


Posted: Nov 21, 2012 07:04 PM    Msg. 2 of 3       
Quote: (From my post on Kirby's Scripting Thread)
Spawning more than 6 vehicles in a multiplayer map

I owe all credit to kirby for theorising this script:

  • Give all your vehicles names

  • Place a big trigger volume around the first vehicle you placed on the map, but make sure it doesn't go over any other vehicle spawn points besides the first one

  • Remove the {} fields and the text inside them, and replace with the corresponding information



(script startup vehicle_spawn
(if
(!= (unit_get_health {any vehicle from the first to sixth vehicle in the list of vehicles in sapien}) -1.00)
(begin
(object_create_anew {vehicle 1})
(object_create_anew {vehicle 2})
(object_create_anew {vehicle 3});;repeat this object_create_anew pattern for all your vehicles

;;After the vehicles respawn for some odd reason they respawn on the first vehicle you placed in the list. To counter this, use this script. Fill vehicle slots only with vehicles after the 6th vehicle

(script continuous vehicle_respawn
(if
(= (volume_test_object {name of trigger volume around first vehicle} {name of vehicle}) true)
(object_create_anew {name of vehicle})
)
(if
(= (volume_test_object {name of trigger volume around first vehicle} {name of another vehicle}) true)
(object_create_anew {name of another vehicle})
)
(if
(= (volume_test_object {name of trigger volume around first vehicle} {name of yet another vehicle}) true)
(object_create_anew {name of yet another vehicle})
)
;;repeat this pattern for all vehicles besides the first 6 vehicles
)


Edited by nihao123456ftw on Nov 21, 2012 at 07:06 PM


klasher1000
Joined: Nov 1, 2012


Posted: Nov 23, 2012 06:59 AM    Msg. 3 of 3       
thanks so much :)

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 3:43 AM 282 ms.
A Halo Maps Website