Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: any unit in a group knowsabout any unit in another group  (Read 629 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
What is the syntax for this situation?  (any unit in group1) KnowsAbout (any unit in group2) > 0

j-man

  • Guest
Re:any unit in a group knowsabout any unit in another group
« Reply #1 on: 21 May 2004, 01:33:07 »
Toadlife made a funxtion called "threat matrix". You might want to go to the editor's depot and check it out.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:any unit in a group knowsabout any unit in another group
« Reply #2 on: 21 May 2004, 02:08:26 »
If it's only for any unit in one group about any unit from another
group, you don't need the function;

The leader of group A shares knowledge with his men about
anybody in group B.

in a trigger's condition field:

Code: [Select]
"leader groupA knowsabout _x > 0" count units groupB > 0

or in a script:

Code: [Select]
?"leader groupA knowsabout _x > 0" count units groupB > 0
:note - the function comes in handy if you want to know if
anybody from one array knowsabout anybody from another array.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted