Page 1 of 1

Adding spawns for vehicles [Solved]

Posted: Fri May 15, 2009 5:32 pm
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)

Re: Adding Vehicles

Posted: Fri May 15, 2009 5:33 pm
by Maveritchell
Adding vehicles can't be done in SWBF2, as far as I know.

Re: Adding Vehicles

Posted: Fri May 15, 2009 5:35 pm
by RogueCruiser
no, im trying to make a vehicle spawn on my map!

Re: Adding spawns for vehicles

Posted: Fri May 15, 2009 5:41 pm
by B.I.G_Cookie
You have to mark vehicles in you lua.
Walkers have an extra part in the lua.

Re: Adding spawns for vehicles

Posted: Fri May 15, 2009 5:43 pm
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)

Re: Adding spawns for vehicles

Posted: Fri May 15, 2009 5:53 pm
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]

Re: Adding spawns for vehicles

Posted: Fri May 15, 2009 5:57 pm
by RogueCruiser
thanks, and what about for speeders
edit: nvr mind i get it all now