Page 2 of 2

Re: side help

Posted: Tue Mar 25, 2008 6:54 pm
by Maveritchell
cloneknight wrote:ya but they dont show up ingame
Do what Ace said. In your ReadDataFile section it needs to be gen_inf_geonosian, but in your setupteams it needs to be geo_inf_geonosian. If you're ever unsure just check the stock Geonosis scripts:

From geo1c_hunt.lua:

Code: Select all

ReadDataFile("SIDE\\geo.lvl",
                             "gen_inf_geonosian")

	ReadDataFile("SIDE\\tur.lvl",
                             "tur_bldg_geoturret")                             

    --  Level Stats

    ClearWalkers()
    SetMemoryPoolSize("EntityWalker", -1)
    AddWalkerType(0, 3) -- 8 droidekas (special case: 0 leg pairs)
    AddWalkerType(2, 2) -- 2 spider walkers with 2 leg pairs each
    AddWalkerType(3, 2) -- 2 attes with 3 leg pairs each
    SetMemoryPoolSize("Aimer", 70)
    SetMemoryPoolSize("BaseHint", 200)
    SetMemoryPoolSize("CommandWalker", 1)
    SetMemoryPoolSize("EntityFlyer", 4)
    SetMemoryPoolSize("EntityHover", 12)
    SetMemoryPoolSize("EntityLight", 50)
    SetMemoryPoolSize("MountedTurret", 12)
    SetMemoryPoolSize("Obstacle", 338)
    SetMemoryPoolSize("PathNode", 100)

    SetSpawnDelay(10.0, 0.25)

    SetupTeams{
             
        rep = {
            team = REP,
            units = 32,
            reinforcements = -1,
            
            sniper   = { "rep_inf_ep2_sniper",8},
            
            
        },
        cis = {
            team = CIS,
            units = 32,
            reinforcements = -1,
            soldier  = { "geo_inf_geonosian",25},
            
        }
     }