Timed Attack

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
User avatar
Sybaris
Posts: 56
Joined: Sat Mar 14, 2015 10:15 am

Timed Attack

Post by Sybaris »

I have an USSR AGI about 2 miles from a US frigate and the sides turn hostile at a certain time. I didn't want the frigate to blow away the AGI as soon as they turn hostile so I figured out how to set the frigates ROE to prevent that but is there a way to automatically change the ROE at a certain time so the frigate will engage?
Parel803
Posts: 947
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

RE: Timed Attack

Post by Parel803 »

I'm no expert but I think you can set the time trigger with a Lua action. I came across some doctrine setting changes via Lua if I remember correctly. Must be in the Lua forum if I'm correct
best regards GJ
User avatar
BeirutDude
Posts: 2811
Joined: Sat Apr 27, 2013 9:44 am
Location: Jacksonville, FL, USA

RE: Timed Attack

Post by BeirutDude »

Sorry I misunderstood your post


You could use an Event with a "Condition" to check when the Frigate's side turns hostile and activate a mission.

Trigger: Regular time = 30 seconds, or 1 minute or 5 minutes, tec.
Condition: Frigate's side is hostile
Activation: Activate mission script.

Then don't mark to report in the messages but when the Frigate's side turns hostile the mission will force it to engage the AGI. I notice people ignore the "Conditions" but there is a lot of power there
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
thewood1
Posts: 10259
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Timed Attack

Post by thewood1 »

If you know the time the unit goes hostile, pre-build a mission with a delayed start.
User avatar
Gunner98
Posts: 5973
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: Timed Attack

Post by Gunner98 »

If I understand correctly, you could simply use a mission. Have the restrictive ROE in place for the overall game, set up a mission with more liberal ROE setup but inactive, set the time to activate the mission and assign the units who will blow away the AGI to that mission.

Edit: As thewood1 said

B
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
User avatar
Sybaris
Posts: 56
Joined: Sat Mar 14, 2015 10:15 am

RE: Timed Attack

Post by Sybaris »

Thanks for the responses.
I finally got the frigate to shoot the AGI at the correct time with your suggestions but now ............ the frigate RTB's!
I thought if I threw in a script to delete the mission after attacking the AGI it wouldn't RTB but it still does. So I set all the withdraw/redeploy variables to Ignore....still RTB's.
What's up with a ship RTBing after action?? That's just funny.

What I'm trying to do is get the frigate to resume duties as planeguard after it shoots the AGI. I guess I'll have to make the CVN and frigate a group and assign the frigate a station and park the AGI close enough to get shot at the right time but I have my doubts that'll work correctly.
User avatar
Gunner98
Posts: 5973
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: Timed Attack

Post by Gunner98 »

Or build another missions (patrol probably) with relative RPs to the carrier and change the mission of the frigate. Perhaps you need a SetUnit line in the script with RTB=false. Might have to play with the lua a bit.

B
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
User avatar
BeirutDude
Posts: 2811
Joined: Sat Apr 27, 2013 9:44 am
Location: Jacksonville, FL, USA

RE: Timed Attack

Post by BeirutDude »

The attached Scenario combines what The Wood, Gunner and I suggested into one situation...

1. The Side Doctrine is very restrictive with "Hold" orders.
2. There is an event that uses a Lua Script to randomly begin hostilities during a two hour period. The Event is displayed in the Message log when it fires. I assume you have that taken care off and is just to demonstrate the next Event.
3. I set up a second REPEATABLE Event to check every five minutes to see is the USN is Hostile to the USSR (AGI). It is NOT set to display in the message log. There is a "Condition" where if the USN is NOT hostile to the USSR the event fails and nothing happens. When the USN becomes hostile to the USSR then with the next check of the event (next 5 minute mark) the event will pass the check and a mission to strike the AGI (AGI Strike) will initiate/activate.
4. The AGI Strike mission will take some random time to initiate from 00:01-5:00 minutes from the initiation of hostilities depending upon the timing of the two steps above.
5. The AGI Strike ASuW Mission has free ROE/Doctrine.
6. Then it takes some time for the frigate to get into position to fire and destroy the AGI.

So this does everything we all suggested but with the feature that the actual engagement with the AGI will be a bit random. I tested it about 5 times and came up with everything from 4 minutes from hostilities to 12 minutes until the USS Knox engages.

Hope it helps...
Attachments
SandboxFr..Problem.zip
(11.95 KiB) Downloaded 7 times
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Timed Attack

Post by KnightHawk75 »

but is there a way to automatically change the ROE at a certain time so the frigate will engage?
Time trigger either recurring check, or as mentioned at a specific time.
Action: (handles either case)

Code: Select all

if ScenEdit_GetSidePosture('Blue','Red') == 'H' then --Side1's (blue) view of posture toward side2 (red)
   --set at the unitlevel the ROE involved value, 1=tight, 0=free, 2=hold ,'inherit' to reset to inherited.
   ScenEdit_SetDoctrine({side="Blue", unitname="TheUnitName" or guid="guidofunithere"}, {weapon_control_status_surface=1});
 end
 
http://commandlua.github.io/#wrapper_Doctrine
Post Reply

Return to “Command: Modern Operations series”