Overloading function.

Moderators: Pocus, Pocus

Post Reply
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 309
Joined: Thu May 21, 2020 9:50 pm

Overloading function.

Post by Surt » Tue Sep 08, 2020 12:45 pm

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?

Site Admin
Site Admin
Posts: 9296
Joined: Wed Mar 23, 2005 10:35 pm

Re: Overloading function.

Post by pipfromslitherine » Tue Sep 08, 2020 3:44 pm

You need to override the entire file in your custom scenario.


follow me on Twitter here

Post Reply

Return to “MOD”