Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use eventGameLoaded for Cobra AI group initialization #4040

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

KJeff01
Copy link
Member

@KJeff01 KJeff01 commented Aug 12, 2024

Uses the eventGameLoaded event in place of eventGameInit.

As for why, API function newGroup() has bad behavior (all script assigned "group" numbers get wiped after loading a save, so the results of newGroup() resets back to zero--and thus groupSize() will probably act weird too).

@KJeff01 KJeff01 added this to the 4.5.2 milestone Aug 12, 2024
@KJeff01 KJeff01 merged commit 7801e80 into Warzone2100:master Aug 12, 2024
37 checks passed
@KJeff01 KJeff01 deleted the cobraFix branch August 12, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant