[Q] Strike Mission Target list

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
Knightpawn
Posts: 765
Joined: Mon Dec 02, 2024 12:28 pm

[Q] Strike Mission Target list

Post by Knightpawn »

(background: the "trigger' for this question was an answer in the Tech forum)

How would one trigger a strike mission upon detection of a certain type of unit AND at the same time limit the possible targets of the activated mission to certain type of units?

In other words (as an example):
Active naval strike mission X if and only if a carrier or DDG is detected and in this case put on the target list only carriers, DDGs and Frigates
Lakeend
Posts: 63
Joined: Thu Oct 31, 2024 9:35 am

Re: [Q] Strike Mission Target list

Post by Lakeend »

You can create a broad unit detected trigger, then as lua condition script use unitC() function ( https://commandlua.github.io/assets/Fun ... UnitC.html) and check if its a eg. carrier, then as Action enable your strike mission and AssignUnitAsTarget(https://commandlua.github.io/assets/Fun ... arget.html).

If this was what you were asking?
Knightpawn
Posts: 765
Joined: Mon Dec 02, 2024 12:28 pm

Re: [Q] Strike Mission Target list

Post by Knightpawn »

Lakeend wrote: Thu Sep 24, 2026 8:45 am You can create a broad unit detected trigger, then as lua condition script use unitC() function ( https://commandlua.github.io/assets/Fun ... UnitC.html) and check if its a eg. carrier, then as Action enable your strike mission and AssignUnitAsTarget(https://commandlua.github.io/assets/Fun ... arget.html).

If this was what you were asking?
Thanks! I will try it
Knightpawn
Posts: 765
Joined: Mon Dec 02, 2024 12:28 pm

Re: [Q] Strike Mission Target list

Post by Knightpawn »

Lakeend wrote: Thu Sep 24, 2026 8:45 am then as Action enable your strike mission and AssignUnitAsTarget(https://commandlua.github.io/assets/Fun ... arget.html).
Does sequencing of nested action under a trigger matter? Do they get executed top to bottom? To my mind i should probably first assign targets and the activate. Or is it irrelevant?
Lakeend
Posts: 63
Joined: Thu Oct 31, 2024 9:35 am

Re: [Q] Strike Mission Target list

Post by Lakeend »

Knightpawn wrote: Thu Sep 24, 2026 10:50 am
Lakeend wrote: Thu Sep 24, 2026 8:45 am then as Action enable your strike mission and AssignUnitAsTarget(https://commandlua.github.io/assets/Fun ... arget.html).
Does sequencing of nested action under a trigger matter? Do they get executed top to bottom? To my mind i should probably first assign targets and the activate. Or is it irrelevant?
If its question of action sequencing, best to put them all to same lua action script and handle sequencing there?
Post Reply

Return to “Command: Modern Operations series”