trigger · has_carrier_airwings_on_mission
Definition
- Supported scope:
COMBATANT - Supported target:
none
Description
check if side has a career with air wings on a mission
has_carrier_airwings_on_missionCOMBATANTnonecheck if side has a career with air wings on a mission
Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.
In naval or carrier-focused mods, this trigger can be used to detect whether one side of a battle has dispatched carrier-based aircraft for missions, thereby triggering specific combat events or applying additional modifiers. For example, in custom combat events, you can check whether a carrier task force has launched its aircraft to decide whether to activate certain tactical bonuses:
# Combat event: Detect whether carrier aircraft are on mission
combat_event = {
id = my_naval_mod.1
trigger = {
has_carrier_airwings_on_mission = yes
is_attacker = yes
}
...
}
[has_carrier_airwings_in_own_combat](/wiki/trigger/has_carrier_airwings_in_own_combat): Often used together with this trigger. The former checks whether carrier aircraft are on mission, while the latter checks whether they are actively participating in the current battle. Combined, they allow you to precisely distinguish between "dispatched" and "actively engaged" states.[is_attacker](/wiki/trigger/is_attacker) / [is_defender](/wiki/trigger/is_defender): Used to differentiate between the two sides of combat, ensuring that carrier task force judgments are only applied to attackers or defenders as appropriate, preventing logical errors.[is_fighting_air_units](/wiki/trigger/is_fighting_air_units): Using this in conjunction allows further confirmation that air-to-air combat exists in the current battle, forming a complete carrier combat judgment logic together with the carrier aircraft mission state.COMBATANT scope (i.e., the combatant in battle). Beginners often mistakenly place it in condition blocks of country or division and other scopes, resulting in script errors or conditions that always evaluate to false.has_carrier_airwings_on_mission only checks whether carrier aircraft have been assigned a mission, not whether they are actually contributing to the current battle. If you need to check the latter, use has_carrier_airwings_in_own_combat instead—these two triggers are not interchangeable.