First off, is this a server side mod or a client side mod? (if you are making a new mod that has this, then this is a client side mod)
If client side mod, go to the objects rfa, find the vehicle that fires the projectile you need the jeep on, then look up what projectile it fires. Some vehicles include the projectile in the weapons.con file but other times they are included in a common file for a vehicle class or type.
Once you find that projectile, simply create a spawner like you see on a map, then addTemplate it to the projectile:
Code: Select all
ObjectTemplate.addTemplate (Name of your spawner)
It's as simple as that.
Swaffy wrote:Just add an object spawner to the projectile ... that's what I do in BF1942. I'm sure it'll work in BF2.
He is asking about this in BFV not BF2. But nonetheless it is the same through out. The object spawner code only really has a few new commands in BF2 and addTemplates are handled the same way. the differences are even less in BFV. BFV is basically an upgraded BF1942 engine with a few extra quirks added in.