Jump to content

Group has line of sight to enemy = flag?


Recommended Posts

Posted

So, while I'm on fire with questions, I'll throw this one out aswell!

 

Is it possible to have a flag set true when a unit of one group has line of sight to a specified enemy group?

 

What I'm trying to do is get a message when group Blue1 has line of sight, and preferably is within a specified range to any unit of group Red1. To have them say "target aquired" or something equally as cool.

 

Love you guys.

 

Cheers!

Posted
So, while I'm on fire with questions, I'll throw this one out aswell!

 

Is it possible to have a flag set true when a unit of one group has line of sight to a specified enemy group?

 

What I'm trying to do is get a message when group Blue1 has line of sight, and preferably is within a specified range to any unit of group Red1. To have them say "target aquired" or something equally as cool.

 

Love you guys.

 

Cheers!

 

Hi,

MIST has a function exactly for this: mist.flagFunc.units_LOS

(See http://wiki.hoggit.us/view/Units_LOS)

If the units are in Line-Of-Sight and within a certain distance (and also some other parameters) it sets a flag true - and you can use this flag for any action (i,e MESSAGE TO ALL/ GROUP etc)

 

HTH,

Assaf.

  • Recently Browsing   0 members

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