Getting vehicles to spawn.
Posted: Tue Jun 20, 2006 9:29 pm
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?
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?