Page 1 of 1
How to add custom vehicles?
Posted: Wed May 04, 2016 3:27 pm
by TheMastermindOfMaom
I am currently making a map and would like to add a custom vehicle,but I couldn't find a tutorial for it on the FAQ. Any help?
Re: How to add custom vehicles?
Posted: Wed May 04, 2016 3:32 pm
by AnthonyBF2
Follow the custom side tutorial but add your vehicle instead of characters (you can add characters too if you like)
The vehicles would be a "class" type just as a playable character would be.
In your map Lua just make sure you got something like ReadDataFile("dc:SIDE\\my_vehicle.lvl", "my_vehicle_name") -- This code goes after ScriptInit()
Then make sure you know how to setup vehicle spawns in your map and fill in your vehicle's name in the vehicle spawns.
Based on what type of vehicle you're using, make sure you have the correct memory pools setup for it.
Re: How to add custom vehicles?
Posted: Wed May 04, 2016 3:34 pm
by TheMastermindOfMaom
Thanks.