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

SC UEF Mission 3 Co-op bug #406

Closed
maudlin27 opened this issue Jun 29, 2023 · 0 comments · Fixed by #419
Closed

SC UEF Mission 3 Co-op bug #406

maudlin27 opened this issue Jun 29, 2023 · 0 comments · Fixed by #419

Comments

@maudlin27
Copy link
Contributor

UEF SC Mission 3 contains a flaw in the logic - it only moves on from objective 4 (kill or capture the Aeon princess) if units belonging to player 1 enter the area around the island. However, in a co-op game it is possible that it's player2+ who does this. The issue is that if they kill Eris before player 1 gets any units to approach the island, then the next objective bugs out because it tries creating a death callback on a unit that is already dead, meaning it's impossible to then complete the mission.

Relevant extracts from the E03_script file are noted below

function StartMission4()
    ScenarioFramework.CreateAreaTrigger(M4IslandApproach, ScenarioUtils.AreaToRect('Aeon_Island_Area'), categories.ALLUNITS, true, false, ArmyBrains[Player1], 1, false)

function M4IslandApproach()
    ScenarioFramework.Dialogue(OpStrings.E03_M04_020, AddObjectiveM4P2)
end

function AddObjectiveM4P2()
    ScenarioInfo.M4P1:ManualResult(true)
    ScenarioFramework.CreateUnitDeathTrigger(ErisKilled, ScenarioInfo.AeonCDR)
speed2CZ added a commit to speed2CZ/faf-coop-maps that referenced this issue Sep 1, 2023
speed2CZ added a commit that referenced this issue Sep 1, 2023
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 a pull request may close this issue.

1 participant