Adding spawns for vehicles [Solved]

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
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Inside a whale.

Adding spawns for vehicles [Solved]

Post by RogueCruiser »

Ok, so i added the vehicle spawn point on my map, I gave the all atk and all def categories the imp_walk_atst, but it doesn't show ingame, how do i do this
(and yes my cp does have a control zone name thing)
Last edited by RogueCruiser on Fri May 15, 2009 5:40 pm, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Vehicles

Post by Maveritchell »

Adding vehicles can't be done in SWBF2, as far as I know.
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Inside a whale.

Re: Adding Vehicles

Post by RogueCruiser »

no, im trying to make a vehicle spawn on my map!
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Adding spawns for vehicles

Post by B.I.G_Cookie »

You have to mark vehicles in you lua.
Walkers have an extra part in the lua.
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Inside a whale.

Re: Adding spawns for vehicles

Post by RogueCruiser »

oh, nice thanks

but where is it in the lua

Is it from this:
-- Level Stats
ClearWalkers()
AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)

to this?
-- Level Stats
ClearWalkers()
AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 4) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Adding spawns for vehicles

Post by B.I.G_Cookie »

This part in the lua,
If you want to spawn an AT-ST
Hidden/Spoiler:
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman_snow",
"imp_inf_rocketeer_snow",
"imp_inf_sniper_snow",
"imp_inf_dark_trooper",
"imp_inf_engineer_snow",
"imp_inf_officer",
"imp_hero_darthvader",
"imp_walk_atat",
"imp_walk_atst_snow")
The normal name of the atst is imp_walk_atst

And this part for the walkers:
Hidden/Spoiler:
local weaponCnt = 350
-- Level Stats
ClearWalkers()
SetMemoryPoolSize("EntityWalker", -2)
AddWalkerType(0, 0) -- 0 droidekas
AddWalkerType(1, 4) -- 6 atsts with 1 leg pairs each
AddWalkerType(2, 2) -- 2 atats with 2 leg pairs each]
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Inside a whale.

Re: Adding spawns for vehicles

Post by RogueCruiser »

thanks, and what about for speeders
edit: nvr mind i get it all now
Post Reply