Jump to content

Recommended Posts

Posted

Hi everyone,

 

 

I'm wondering if there is an available task to instruct a ground unit to only attack a single enemy unit similar to Air units task 'AttackUnit' ?

Posted (edited)

I don't think there's such task for ground units, however, there are ways to work around this problem.

 

For instance, if the other unit is an aircraft, you could make the ground unit adopt a red alarm state only when that aircraft is in zone.

The problem, of course, would be that any other valid target would be attacked as well in that instant.

 

There might be other (better) ways of doing this, mind you, I simply ignore them :D

 

 

If the other unit is a ground unit / ship, however, it can be individually targeted using :fireAtPoint .

Get the vec2 of the target unit and use it as the point value within the task table, push the task after that and you're done.

 

Keep in mind that ground units won't attack other units unless they're within LOS and range.

Edited by Hardcard
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...