Page 1 of 1

Getting vehicles to spawn.

Posted: Tue Jun 20, 2006 9:29 pm
by t551
I followed the tutorial on adding vehicles to maps that is availible in the downloads section, but every time I open the map in-game, there is nothing there. Mungelog doesn't complain, and, as far as I can tell, neither does BF2_Modtools.exe.

Here is what I do. I create a new world, open it in zeroeditor. I created a region called cp2_control, and gave it a type of cp2_control. I placed the region around cp2, and then in the object instance box, I set cp2's control region to cp2_control.

I place a com_item_vehiclespawn inside the control region, and set its controlregion field to cp2_control, then, since cp2 is owned by the republic, I set its ClassRepDef to be rep_hover_fightertank.

I close zeroeditor, go to Data_WHT/common/scripts/WHT/WHTc_con.lua, check the republic side loading segment, and see that "rep_hover_fightertank",
is already there.

I scroll down to the memory pools to check that, and the
SetMemoryPoolSize("EntityHover", 32)
line is uncommented and ready to go.

I clean and munge, but the vehicle does not exist ingame.

After doing this, I tried going back into zeroeditor and assigning the vehicle spawns to the republic team but that didn't work either.

What am I doing wrong?

Posted: Tue Jun 20, 2006 9:54 pm
by -_-
By default, republic is attacking if I remember right.

Posted: Tue Jun 20, 2006 10:04 pm
by t551
I switched it around, and it still doesn't work.

Posted: Tue Jun 20, 2006 10:07 pm
by xwingguy
Getting Started Doc wrote:The first parameter, ControlZone refers to what CP this vehicle is associated to. The value that should be entered here is the name of the CP, NOT THE NAME OF THE CONTROL REGION, that you want this vehicle to be associated to. For example, cp1, or cp5. NOT cp1_control, or cp5_control.

Posted: Tue Jun 20, 2006 10:33 pm
by t551
OOOOooooohhh. Thanks very much.

Posted: Tue Jun 20, 2006 11:18 pm
by Squirrel7Hunter
just to let you know that was in the documentaions in your modtools folder along with other docs that are very helpful, try reading the gettiing started if your new to modding

Posted: Tue Jun 20, 2006 11:34 pm
by t551
Im not new, it's just that the box in the Object Instance panel says ControlZone, so it's confusing that you should put the cp name. I mod more from the XSI side of things, I just need this map to test a vehicle.