Page 1 of 1

AddWalkerType()

Posted: Fri Jul 09, 2010 1:27 pm
by Aman/Pinguin
Alright.
I just want to know what the second number was about. I totally forgot it and can't find any references about it.
I'm asking this because it always bugged me that there's a 3 for the 4 legged / 2 legpaired spider walker for example.

Code: Select all

    AddWalkerType(2, 3) -- 2 spider walkers with 2 leg pairs each
(Search function is pretty useless, because it's in every single lua posted in this forum...)
Thanks. ;)

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 1:30 pm
by Xavious
The second number is the number of walkers in the map that have the number of sets of 2 legs represented by the first number.

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 1:36 pm
by Aman/Pinguin
So, the comments in the geonosis lua for example are just wrong / outdated?

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 1:38 pm
by Teancum
Yep. It's AddWalkerType([number of walkers], [number of leg pairs for that walker])

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 1:40 pm
by Aman/Pinguin
You mean AddWalkerType([number of leg pairs for that walker], [number of walkers]). :P

Alright thanks guys.

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 1:57 pm
by Teancum
errr... yeah, that's what I said, wasn't it? :oops: :lol:

Re: AddWalkerType()

Posted: Fri Jul 09, 2010 7:29 pm
by SAMofBIA
hmmm neato, that also solves many of my questions.