Jump to content

Routes and control logic...


exp333

Recommended Posts

How do I connect a route or movement orders to a condition/event/trigger in the control logic? Like for example if I'm designing a scenario and I want a unit to move from point A to point B if enemy units are detected in a certain area, or have a route that's a continuous loop as if patrolling the perimeter of an area. I understand how the control logic works but I don't see options for this. I am using v4.023. Thanks

Link to comment
Share on other sites

  • Members

Assuming that you have the unit, a route connecting it to waypoint A, and a route from A to waypoint B.

Create the region X first that you want to check for enemy presence.

 

Now right-click route AB, and select "Embark, if..."

In the dialog, set the option to embark if Unit (this) can see (Enemy Units) in Region (X). You may want to add a "delay before checking" timer that allows the unit to observe for a while before deciding whether region X is enemy occupied or not (otherwise it'll make the decision on the reported situation, which depends on other units' observations and working radios to transmit the news.

 

Any route or route chain may loop back to its waypoint of origin. That should make it very easy to create a patrol circling an area.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...