Page 1 of 1

AddWalkerType in LUA

Posted: Fri Jul 29, 2011 9:20 pm
by Nobandwidth25
I'm trying to make sure I've got the LUA logic down on this topic.

I know that when you add wallkers to a map, you have to edit these lines in the LUA:
Hidden/Spoiler:
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)
So since AT-TEs have three pairs of legs, you change the zero in (3, 0) to the # of walkers, so (3, 2) for 2 AT-TEs.

My question is: if I want to have 3 AT-TEs and 2 spider walkers, should my LUA lines look like this?
Hidden/Spoiler:
ClearWalkers()
AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 2) -- 2x2 (2 pairs of legs) [To represent the 2 four-legged spider walkers]
AddWalkerType(3, 3) -- 3x2 (3 pairs of legs) [To represent the 3 six-legged AT-TEs]
If not, what would I need to make them look like in the LUA?

Re: AddWalkerType in LUA

Posted: Sat Jul 30, 2011 2:54 am
by AQT
That should be correct. A good way to always make sure is to test it out in-game.