since im a bit new to modding
Posted: Tue Jul 31, 2007 1:45 pm
how do you accuratly add vehicles
Get more from your games!
http://www.gametoast.com/
Well i have it all right in ZE.. i think anyways, but i think my lua might be wrong ehretrainmaster611 wrote:Read the Getting Started Doc. It talks about spawning vehicles.
The second number sets how many can be on the field at once.AddWalkerType(0, 4) -- memory pool for droidekas (0 leg pairs, in this case set for 4 'dekas)
AddWalkerType(1, 0) -- memory pool for 1-leg pair vehicles (set to 0, AT-RT, AT-ST)
AddWalkerType(2, 0) -- memory pool for 2-leg pair vehicles (set to 0, Spider Walkers, AT-AT)
AddWalkerType(3, 2) -- memory pool for 3-leg pair vehicles (set to 2, AT-TE)
So this is what it shoudl look like, tho this is jsut the droidika, it shoudl look something like this???Maveritchell wrote:I'd bet that you didn't add memorypools for your walker. Right above all the SetMemoryPool lines in your .lua should be something about AddWalkerType (looks like this):
The second number sets how many can be on the field at once.AddWalkerType(0, 4) -- memory pool for droidekas (0 leg pairs, in this case set for 4 'dekas)
AddWalkerType(1, 0) -- memory pool for 1-leg pair vehicles (set to 0, AT-RT, AT-ST)
AddWalkerType(2, 0) -- memory pool for 2-leg pair vehicles (set to 0, Spider Walkers, AT-AT)
AddWalkerType(3, 2) -- memory pool for 3-leg pair vehicles (set to 2, AT-TE)
would i put somthiong likeMaveritchell wrote:You don't need to duplicate the AddWalkerType line for 3 leg pairs. Other than that, provided you want to spawn 2 AT-TEs at a time and 4 droidekas at a time, you're good to go.
well now im right confused i know whati have to do, but i dont knwo how to do it lol, If only it said in the docs "____________PUT THIS IN THAT PART OF YOUR lua" lolMaveritchell wrote:No. Anything in a .lua that comes after two dashes ("--") is just a comment. The "special -> droideka" etc. is only there to help you know what's what.
Maveritchell wrote:All you need to do is change the second number in the parentheses of the AddWalkerType with the number of legpairs you want. NOTHING ELSE.
Like I said, ignore anything in the .lua after two dashes. They're just notes that the programmers made in there that don't affect the program.
Maveritchell wrote:That would be correct. It should look like this:
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
Well it doesnt spawnMaveritchell wrote:You must've missed that whole "getting started" doc, which really has a pretty solid tutorial on adding vehicles. Regardless, as long as you don't assign a controlregion to your vehicle spawn, you don't need one. Just make sure the vehicle spawn is assigned to your REP team (there's a box that says team, and the clones are probably team 1), so that only clones can use the AT-TE.
Look in the geo1c_con.lua if you're having .lua problems, especially with a Geonosis map.SetMemoryPoolSize("CommandWalker", 1)
so i jsut throw it somwhere in here: (well after the addwalkertype ofcoarseMaveritchell wrote:You need this line in your .lua, also, if it's not there. It goes with the rest of the memorypools:
Look in the geo1c_con.lua if you're having .lua problems, especially with a Geonosis map.SetMemoryPoolSize("CommandWalker", 1)
okay, i am munging now, Well, I will be sure to put you into the read me for helping me so much, thank you, Now if only i can find the ATTE skin haMaveritchell wrote:Yes.