SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Breakdown on February 13, 2009, 12:00:45 PM

Title: How do you add vehicles?
Post by: Breakdown on February 13, 2009, 12:00:45 PM
Yeah.

This was one of the only things I never learned while modding.

Can somebody give me a step by step instruction how to add vehicles to a map? It'd be great help. Thanks

(By the way, before posting this, i treid many times but the vvehicles never show up/I sometimes have some scriptmunge error)
Title: Re: How do you add vehicles?
Post by: vf501 on February 13, 2009, 01:19:04 PM
Look in BFBuilder\Data_ModID\Common\ODFS

For, com_item_vehicle_spawn.odf


Browse for it in Zeroeditor, the place it as a normal prop object and fill in all the fields with the vehicle odf and such, pretty self explainitory after you place the spawn.
Title: Re: How do you add vehicles?
Post by: Radical_Pi on February 13, 2009, 01:20:41 PM
I'm not sure of the exact instructions but the most likely thing that you're doing wrong is adding the .odf of the vehicle itself instead of a com_item_vehicle_spawn.odf

I believe these are the instructions on how to do it:

1. HAVE THE VEHICLE INCLUDED IN THE REQ FILES (duh)
2. Create a com_item_vehicle_spawn object (located in Data****/Common/ODF with **** as the map name)
3. Position and orient the spawn object (It will be an arrow and the arrow should point the direction you want the vehicle facing)
4. Variables: Requires a list of it's own
5. Make sure the vehicle is listed in the SetMemoryPoolSize commands in the LUA scripts ("EntityHover" for a hovering ship including the troop ships on Geonosis, "EntityFlyer" for things like X-Wings, AddWalkerType functions for vehicles with legs, look at the Mission LUA samples under Assets for the rest of the MemoryPool commands)

On the spawn point class variables, when the CP it is associated with falls under the control of the other team any vehicles that have not been activated (entered) will self-destruct and the ones for the new team will spawn if they are set
EhPortal 1.34 © 2024, WebDev