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

Author Topic: Vehicle scripting help (8 messages, Page 1 of 1)
Moderators: Dennis

Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 22, 2008 04:22 AM    Msg. 1 of 8       
Ok, so I create a map with lots of custom vehicles in it.

After a certain period of time, my pelican respawns somewhere else in the map. How can I fix this? My pelican was scripted to spawn with the object_create command. Same thing with a Phantom.

Also, when I restart the game, all my vehicles spawn in one single place, except for the original ones.


H Guru
Joined: Oct 15, 2006

EHSv3 Coming Soon!


Posted: Dec 22, 2008 05:02 AM    Msg. 2 of 8       
Use EHSv2 for the vehicle script. When me and killerkiwi was making the script for it, it went through a lot of testing to prevent those problems you listed above.


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 22, 2008 05:14 AM    Msg. 3 of 8       
Ummm.....how do I use the EhS? I don't really get how to spawn vehicles with it. What do you put under 'client'? And it keeps saying that check_vehicle is not a valid object name, while the scripter told me to add it. And why do you need a trigger? Where should I place it?
Edited by Polamee on Dec 22, 2008 at 05:42 AM


H Guru
Joined: Oct 15, 2006

EHSv3 Coming Soon!


Posted: Dec 22, 2008 07:11 AM    Msg. 4 of 8       
Quote: What do you put under 'client'?

Client and the Server fields are just the names of the scripts they can be anything as long as they are not named the same thing.

Quote: And it keeps saying that check_vehicle is not a valid object name, while the scripter told me to add it. And why do you need a trigger? Where should I place it?

Choose a place on your map where players won't be able to access. Once you have done that place a vehicle that is in the globals tag and name it check_vehicle. Place all your other vehicles you wish to script in next to it, and name them.
Once you have done that wrap a trigger volume around them all so that all the vehicles are within the trigger volume. Place flags (place them a bit above the ground so that they won't be halfway through the bsp) on where you want the vehicles to spawn, name them like you did in the scripter.

Now, the check_vehicle is what controls their gametype that they will spawn on so whatever you set the check_vehicle to be default/spawn on, the other vehicles that have been scripted in will do the same.

E: Here is a video tutorial I made a while back for someone. If you can't stream it then just download it.
http://gamerscreek.com/EHSv2-Morevehicles.wmv
Edited by H Guru on Dec 22, 2008 at 07:15 AM


Koo294
Joined: Nov 30, 2008

How is she when she doesn't surf?


Posted: Dec 22, 2008 07:56 AM    Msg. 5 of 8       
how do you make more than 6 different types spawn? I've used the
(script startup vehicle
(begin
(object_create waspy)
)
)

script but its still not there...


H Guru
Joined: Oct 15, 2006

EHSv3 Coming Soon!


Posted: Dec 22, 2008 07:58 AM    Msg. 6 of 8       
I take it that is from EHSv1?

Use EHSv2 http://forum.gamerscreek.com/downloads.php?cat_id=4

Then follow the above post I made.
Edited by H Guru on Dec 22, 2008 at 07:58 AM


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 22, 2008 08:05 AM    Msg. 7 of 8       
Without using EhSv2, your script should have been:

(script startup spawnvehicle
(object_create waspy)
)


Koo294
Joined: Nov 30, 2008

How is she when she doesn't surf?


Posted: Dec 22, 2008 08:07 AM    Msg. 8 of 8       
i didn't use any EHS... but im downloading it now... BTW its a multiplayer map
Edited by Koo294 on Dec 22, 2008 at 08:11 AM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 1:48 AM 141 ms.
A Halo Maps Website