Page 1 of 1

Can u have more than 6 Vehicle types??

Posted: Wed Nov 01, 2006 10:29 pm
by WaZzA
I'm not sure how many people make maps for halo CE anymore but I thought i might post a question to see if anyone can answer. I'm making a map and want to put more than 6 vehicle types in it, since the globals tag only allows the first 6 vehicles in the list i checked to find if there was any way...

I've heard of a thing called the "infinite vehicle script" but cant find it anywhere or how to use it. and i think there might be another way.
If anyone knows anything about this script could they tell me :D

so does anyone have any ideas how to get more than 6 different vehicles in a map? if anyone could hep it would be good, thanks.

Posted: Thu Nov 02, 2006 8:14 am
by kirby_422
(script starup spawn-vehicles
(object_create_anew <vehicle-label-here>)
)


the vehicle label isent the name of the tag, in sapein, there is a box in the edit menu of it underneth the type, type in a name that your gonna put in the script (no 2 objects can share the same name) if you need more than one vehicle, copy the part of the object_create_anew and have the other ones before the ending )

Thanks.. but 1 more question

Posted: Thu Nov 02, 2006 6:21 pm
by WaZzA
Yeah thats good it worked thanks heaps BUT :roll: theres one thing i must have done wrong or somthin --> when i play the map in Halo the vehicles spawn in the right place, but then after i use one of the vehicles entered in the script when they respawn they appear on top of my mp_warthog, which was my first vehicle in the map (not added to the script). any ideas how to fix this?? thanks again by the way, good to get this far.

Posted: Fri Nov 03, 2006 11:41 am
by kirby_422
make sure you have all the checkboxes filled in about the spawning stuff, because it needs permision to spawn there in that game type, the script forces it to origenaly spawn, but then it reqires permision to respawn in that place it is suposto, so have all the things like "king alowed" and "king default" checked.


so, ill go over the problem in depth now(well.. it does help with a few other peoples problems to, but I dont care lol) (if you dont care, then dont read lol)
so, the script forces it to spawn, so it has spawned. next it will end up trying to respawn, if those boxes arnt checked, it wont be alowed to respawn at its spawn point, and will look for a new suitable spawn point. all vehicles that arnt set in with the check boxes will go to that spawn point (just like how if you use cheat_all_vehicles and let one respawn) if all the vehicles in the map are scripted and arnt alowed in the game type, then when they respawn they arnt aloud to go anywhere and exeption data forms and consumes your computer

Hmmm

Posted: Fri Nov 03, 2006 5:11 pm
by WaZzA
I think it must be how i scripted it or maybe something in the globals? because all the "default" and "allowed" check box's are already ticked so it cant be that.

I'll run you through what i've done so its a bit easier, and also for people who have NO idea how to script for Halo CE, coz i didn't until a few days ago. And just as you said "(well.. it does help with a few other peoples problems to, but I dont care lol) (if you dont care, then dont read lol)" :D

* I used notepad and typed in the script:
(script startup spawn-vehicles
(object_create_anew extra_one)
(object_create_anew extra_two)
(object_create_anew helicopter)
)

* Saved it as 'vehicles.hsc' in my levels directory with the models, bitmaps, and shader (in a new folder 'scripts')
* compiled script in Sapien (file --> compile scripts)
________________________________________________________

Then i don't think i had to do this and it probably doesn't make any difference but i added the vehicles to the globals tag.

Anyway thanks for all your help so far :D

Posted: Fri Nov 03, 2006 6:40 pm
by thephatpanda
No i dont think so