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 »infinite vehicle script

Author Topic: infinite vehicle script (3 messages, Page 1 of 1)
Moderators: Dennis

hoboscience
Joined: Apr 22, 2011


Posted: Dec 30, 2011 12:10 AM    Msg. 1 of 3       
(script startup vehiclespawn
(object_create_anew tallstep1a)
(object_create_anew tallstep2a)
)

I have this simple script here that works however the problem that is annoying me is everytime I restart the game the vehicles disappear. Can this be fixed?


game user10
Joined: Dec 9, 2011

Who is the Overseer?


Posted: Dec 30, 2011 01:39 AM    Msg. 2 of 3       
The vehicles will teleport to the first vehicle spawn point when you restart it, so you have to do object_create_anew to make them spawn in their proper place again. I suggest you make a trigger volume, big enough so that your vehicle will fit inside. Place the trigger volume on the first vehicle spawn point. Then, use these scripts:

(script continuous vehiclerespawn1
(if (= (volume_test_object <triggervolumehere> tallstep1a) true)
(object_create_anew tallstep1a)
)
)

(script continuous vehiclerespawn2
(if (= (volume_test_object <triggervolumehere> tallstep2a) true)
(object_create_anew tallstep2a)
)
)


This will create the vehicles in their proper spawn points when they go in the trigger volume (like when you restart the map). Also, a good thing about object_create_anew is that it will never create a new object when the current object has a player in it. However, if AI are in the vehicle and drive into the trigger volume, it will create a new one and the AI will be erased.


hoboscience
Joined: Apr 22, 2011


Posted: Dec 30, 2011 12:52 PM    Msg. 3 of 3       
thank you sir...this is just what I needed.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 8:20 AM 94 ms.
A Halo Maps Website