For AI and campaign script related discussions and questions
2 posts • Page 1 of 1
how does this function work? I thought it would have been related to the fact if the scavengers have been activated or not before the game starts. Actually I play a game with scavengers, at the beginning this function returns true (1) but during the game it returns false (0) even if few scavenger units and structures are live ? On the attached file you can see few scavenger units (a scav factory is also live) and few debug messages whose output states that scavengersActive() == 0
It checks if scavengers are turned on in the MP dialog. Scav scripts are started independently of this value, so if the scav scripts do not check this value and turn themselves off, it can certainly happen that scavs are running but scavengersActive() is false. It should perhaps be understood as shouldScavengersBeActive(). If it changes value during a game, that would certainly be a bug.