Page 1 of 1

How do you add AT-TEs?

Posted: Sun Nov 01, 2009 3:19 am
by Recon Trooper
I tryed adding a at-te by the normal way and changed the lua to add 3 legs walker type but it never turns up?

Re: How do you add AT-TEs?

Posted: Sun Nov 01, 2009 4:04 am
by B.I.G_Cookie
the atte is a commando vehicle.
you also have to write it into your memorypool
Hidden/Spoiler:
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("CommandWalker", 1)
SetMemoryPoolSize("EnergyBar", weaponCnt)

Re: How do you add AT-TEs?

Posted: Sun Nov 01, 2009 4:11 am
by Darth_Spiderpig
Not to forget the entity walker part:
Hidden/Spoiler:
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("EntityWalker", 500)
SetMemoryPoolSize("MountedTurret", 32)

Re: How do you add AT-TEs?

Posted: Sun Nov 01, 2009 7:13 am
by theultimat
Things you need to do (summary of above posts :P)

1) Add the ATTE in the ReadDataFile part of your LUA.

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
"rep_walk_atte") 
2) Add the walker type of an ATTE. The number after the 3 should be the number of ATTEs in the map.

Code: Select all

AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
3) Set the Memory Pool. This should go under the line

Code: Select all

SetMemoryPoolSize("EntityFlyer", 32)
The code that goes under that is as follows. Again, the 1 is the number of ATTEs you want in the map.

Code: Select all

SetMemoryPoolSize("CommandWalker", 1)
That and all the normal vehicle set up leaves you with a fully functioning ATTE. Enjoy. ;)