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: How can I make a unit know about another unit?  (Read 1038 times)

0 Members and 1 Guest are viewing this topic.

ShrubberyJSC

  • Guest
How can I make a unit know about another unit?
« on: 12 Jul 2006, 06:35:18 »
I'm wondering how to make a group of snipers actually snipe well.

They seem to not see a group of men wandering around 400 or so meters away.

I tried setting the Info Age of the enemies, but this must deal with something else.

So, my question remains.

Any help is... very... helpful...   MPHG  =)

Snuffles

  • Guest
Re: How can I make a unit know about another unit?
« Reply #1 on: 12 Jul 2006, 07:28:01 »
you should try making the snipers' skill up to the max...


In my experience with AI snipers, they tend not to know about you unless you're firing and making a racket, or you're about 50-100m away....so maybe have the enemy squad attacking a small outpost or something so the snipers know they are there?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: How can I make a unit know about another unit?
« Reply #2 on: 12 Jul 2006, 10:01:19 »
if you wish the snipers to see someone at a certain distance, create a trigger, and put in the 'on activation' box

Code: [Select]
{_x reveal sniper_name} foreach thislist
when the units enter the trigger, the snipers will know about them, even if they're behind buildings or hills.

ShrubberyJSC

  • Guest
Re: How can I make a unit know about another unit?
« Reply #3 on: 12 Jul 2006, 10:05:20 »
Thanks Bedges!
« Last Edit: 12 Jul 2006, 10:42:20 by Justin »