Mission.IsSiegeBattle being false in OnMissionBehaviorInitialize on siege battles.

Users who are viewing this thread

Cephas369

Recruit
Mission.IsSiegeBattle stays false even on siege battles, so the only workaround for this is checking if the mission is combat type and if the current settlement is a town or a castle, but this is a bug so please fix it
 
Mission.IsSiegeBattle stays false even on siege battles, so the only workaround for this is checking if the mission is combat type and if the current settlement is a town or a castle, but this is a bug so please fix it
There's a behaviour called MissionCombatantsLogic. This is the mission behaviour that sets up the teams and sets mission type to siege battle. Mission.IsSiegeBattle is set only after the execution of this code section. So if you haven't included this behaviour in your modded mission or if you haven't written your own, then IsSiegeBattle won't be set. For the campaign side, you can check MapEvent.IsSiegeAssault.
 
There's a behaviour called MissionCombatantsLogic. This is the mission behaviour that sets up the teams and sets mission type to siege battle. Mission.IsSiegeBattle is set only after the execution of this code section. So if you haven't included this behaviour in your modded mission or if you haven't written your own, then IsSiegeBattle won't be set. For the campaign side, you can check MapEvent.IsSiegeAssault.
Understand, thanks for the reply
 
Back
Top Bottom