Page 1 of 1
No unlocking Specials
Posted: Sat Oct 03, 2009 10:23 pm
by Recon Trooper
How do you make it that when you start the battle you can automatically be a special soldier?
Re: No unlocking Specials
Posted: Sat Oct 03, 2009 10:31 pm
by Fiodis
ODF property. PointsToUnlock = "0".
Re: No unlocking Specials
Posted: Sat Oct 03, 2009 10:32 pm
by fiddler_on_the_roof
you can either use the fake console command "remove poit limits"
or in the lua, add
Code: Select all
SetClassProperty("your_unit" "PointsToUnlock", 0)
(or something close to that)
Re: No unlocking Specials
Posted: Sat Oct 03, 2009 10:33 pm
by Recon Trooper
Where do you put it in the lua. I put it under setmemorypool and it had an error.
Re: No unlocking Specials
Posted: Sat Oct 03, 2009 11:25 pm
by Ka-Ching
i'd try under this:
SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
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_ep3_officer",1,4},
special = { "rep_inf_ep3_jettrooper",1,4},
or somewhere near this this:
SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_obiwan")
Re: No unlocking Specials
Posted: Sat Oct 03, 2009 11:30 pm
by myers73
no its not.
it goes here:
correct me if im wrong
Re: No unlocking Specials
Posted: Sun Oct 04, 2009 1:33 am
by AQT
@Recon Trooper: If this is for your Imperial side mod, I suggest you just edit the unit(s)' ODF as Fiodis pointed out.
Re: No unlocking Specials
Posted: Sun Oct 04, 2009 2:01 am
by Recon Trooper
I know what to do now...
In soldier.odf you write what fiodis said...
Re: No unlocking Specials
Posted: Sun Oct 04, 2009 4:19 pm
by [RDH]Zerted
myers73 wrote:correct me if im wrong
Both places would have worked. It goes any time after the unit class has been read in. However, the ODF file changes are the preferred way of doing it.