Where should I put this code?[Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Where should I put this code?[Solved]

Post 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!
Last edited by CdtFox on Thu Aug 18, 2016 12:19 pm, edited 1 time in total.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Where should I put this code?

Post by thelegend »

I think this belongs below function ScriptPostLoad().
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Re: Where should I put this code?

Post by CdtFox »

thelegend wrote:I think this belongs below function ScriptPostLoad().
Perfect! Thanks :D
Post Reply