AddWalkerType in LUA

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
Nobandwidth25
Private
Posts: 32
Joined: Mon Jul 04, 2011 12:22 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront II
xbox live or psn: No gamertag set

AddWalkerType in LUA

Post 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?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: AddWalkerType in LUA

Post by AQT »

That should be correct. A good way to always make sure is to test it out in-game.
Post Reply