Page 1 of 1

Where should I put this code?[Solved]

Posted: Tue Aug 16, 2016 5:15 am
by CdtFox
I found this lua code:

Code: Select all

EnableAIAutoBalance()
Basically if the score gets too far in one teams favor (+/- 40 conquest, 60 assault, 1 ctf) it will make the loosing team better
and the winning team worse until things get back to close again.
But I don't know where it should go? Before the setup teams? Before the Readatafile? I have no idea... :|

Thx for the help!

Re: Where should I put this code?

Posted: Tue Aug 16, 2016 7:25 am
by thelegend
I think this belongs below function ScriptPostLoad().

Re: Where should I put this code?

Posted: Wed Aug 17, 2016 1:36 am
by CdtFox
thelegend wrote:I think this belongs below function ScriptPostLoad().
Perfect! Thanks :D