Page 1 of 1

[0.14.21] on_force_created called before on_init

Posted: Sun Jan 15, 2017 5:13 pm
by mickael9
When loading the "team-production-0.4.1" scenario, the on_force_created event is fired before the on_init callback which can make mods crash because their global variables are not yet initialized

Re: [0.14.21] on_force_created called before on_init

Posted: Sun Jan 15, 2017 7:41 pm
by Rseding91
No it's not.

During the scenarios on_init it creates the forces which fires the event.

Other mods need to account for that because it's perfectly valid.