Page 1 of 1

Overloading function.

Posted: Tue Sep 08, 2020 12:45 pm
by Surt
I'm looking for a way to overload some of the functions from the base game, mostly the ones called from

FUNCTION Events_CheckEachTurn(scenarioID);

as most of those are either outdated by a later date or not relevant for an earlier date.

So if I add a function of the same name in a scenario will it be called instead of the base games one?
Or do I have to copy the file Events.BSF (with its nearly 23K lines) and change what I need?

Re: Overloading function.

Posted: Tue Sep 08, 2020 3:44 pm
by pipfromslitherine
You need to override the entire file in your custom scenario.

Cheers

Pip