Page 1 of 1

Unit placement problems

Posted: Mon Sep 26, 2016 5:43 am
by SkinnyODST
I want to place the ep3 officer at the bottom of the spawn selection screen, I did that but then I added another extra unit (the ep2 marine) and HE`s at the bottom instead of the officer. I`ve tried renaming the officer to "extra1" in the lua but that makes him disappear from the spawn selection screen all together. I just want the ep2 marine right above the officer, and the officer at the very bottom. Help?

Here`s my lua code:
Hidden/Spoiler:
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep2_marine",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_inf_ep3_scorchco",
"rep_walk_atte",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_marine",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat",
"cis_walk_spider",
"cis_hover_stap")


ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower",
"tur_bldg_chaingun",
"tur_bldg_built_chaingun",
"tur_yav_bldg_watchtower",
"tur_bldg_recoilless_fel_auto",
"tur_bldg_recoilless_kas",
"tur_bldg_recoilless_lg",
"tur_bldg_recoilless_md",
"tur_bldg_recoilless_myg_auto",
"tur_bldg_recoilless_nab_auto")

SetupTeams{
rep = {
team = REP,
units = 50,
reinforcements = 500,
soldier = { "rep_inf_ep3_rifleman",30,60},
assault = { "rep_inf_ep3_rocketeer",10, 20},
engineer = { "rep_inf_ep3_sniper",5, 10},
sniper = { "rep_inf_ep3_engineer",7, 20},
officer = { "rep_inf_ep3_jettrooper",3, 6},
extra1 = { "rep_inf_ep2_marine",8, 15},
special = { "rep_inf_ep3_officer",1, 1},

},
cis = {
team = CIS,
units = 60,
reinforcements = 500,
soldier = { "cis_inf_marine",30, 60},
assault = { "cis_inf_rocketeer",10, 20},
engineer = { "cis_inf_engineer",5, 15},
sniper = { "cis_inf_sniper",4, 10},
special = { "cis_inf_rifleman",4, 8},
officer = { "cis_inf_droideka",3, 7},
extra1 = { "cis_inf_officer",5, 10},
}
}


SetClassProperty("cis_inf_marine", "WeaponName1", "cis_weap_inf_rifle")
SetClassProperty("cis_inf_marine", "WeaponName2", "cis_weap_inf_pistol")
SetClassProperty("cis_inf_marine", "WeaponName3", "cis_weap_inf_thermaldetonator")
SetClassProperty("rep_inf_ep3_officer", "FleeLikeAHero", "1")

AddUnitClass(CIS, "cis_inf_officer",5,10)
AddUnitClass(REP, "rep_inf_ep2_marine",1,1)

Re: Unit placement problems

Posted: Mon Sep 26, 2016 4:01 pm
by Delta327

Re: Unit placement problems

Posted: Mon Sep 26, 2016 11:43 pm
by SkinnyODST
That only tells me how to add them in, not how to move them around unfortunately

Re: Unit placement problems

Posted: Tue Sep 27, 2016 1:15 pm
by GAB
Try this code:

Code: Select all

soldier = { "rep_inf_ep3_rifleman",30,60},
assault = { "rep_inf_ep3_rocketeer",10, 20},
engineer = { "rep_inf_ep3_sniper",5, 10},
sniper = { "rep_inf_ep3_engineer",7, 20}, 
officer = { "rep_inf_ep3_jettrooper",3, 6},
special = { "rep_inf_ep2_marine",8, 15}, 
AddUnitClass(REP, "rep_inf_ep3_officer",1, 1)
Let me know if it works.

Re: Unit placement problems

Posted: Wed Sep 28, 2016 2:57 am
by SkinnyODST
GAB wrote:Try this code:

Code: Select all

soldier = { "rep_inf_ep3_rifleman",30,60},
assault = { "rep_inf_ep3_rocketeer",10, 20},
engineer = { "rep_inf_ep3_sniper",5, 10},
sniper = { "rep_inf_ep3_engineer",7, 20}, 
officer = { "rep_inf_ep3_jettrooper",3, 6},
special = { "rep_inf_ep2_marine",8, 15}, 
AddUnitClass(REP, "rep_inf_ep3_officer",1, 1)
Let me know if it works.

Ok well it didn`t really work. I mean the ep2 marine sure isn`t below him anymore, HE`S AT THE VERY TOP! :funny2:

Re: Unit placement problems

Posted: Wed Sep 28, 2016 8:03 pm
by GAB
Now I'm intrigued. I have no idea why that would happen. Maybe someone else could shine some light on this.

Re: Unit placement problems

Posted: Sun Oct 02, 2016 10:00 pm
by Samee3
Intriguing.

Code: Select all

 soldier  = { "rep_inf_ep3_rifleman",9, 25},
 assault  = { "rep_inf_ep3_rocketeer",1, 4},
 engineer = { "rep_inf_ep3_engineer",1, 4},
 sniper   = { "rep_inf_ep3_sniper",1, 4},
 -- officer = {"rep_inf_ep2_jettrooper",1, 4},
 special = { "rep_inf_ep3_jettrooper",1, 4},

Code: Select all

 AddUnitClass(REP, "rep_inf_ep2_marine",1 ,4)
 AddUnitClass(REP, "rep_inf_ep3_officer",1, 4)
This code produced the desired effect on my system.