How to add custom vehicles?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
TheMastermindOfMaom
Private First Class
Posts: 314
Joined: Sun Nov 22, 2015 1:48 pm
Projects :: None.
xbox live or psn: #PCMasterRace
Location: Greece

How to add custom vehicles?

Post 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?
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: How to add custom vehicles?

Post 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.
Last edited by AnthonyBF2 on Wed May 04, 2016 3:34 pm, edited 1 time in total.
TheMastermindOfMaom
Private First Class
Posts: 314
Joined: Sun Nov 22, 2015 1:48 pm
Projects :: None.
xbox live or psn: #PCMasterRace
Location: Greece

Re: How to add custom vehicles?

Post by TheMastermindOfMaom »

Thanks.
Post Reply