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 to make AI assassinate  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

zenman1

  • Guest
How to make AI assassinate
« on: 25 Jun 2005, 04:42:00 »
How can I get a sniper to wait for someone to get out of a chopper.
and after the man gets out and salutes the AI sniper will shoot him?

Hope this wasnt a stupid question.

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:How to make AI assassinate
« Reply #1 on: 25 Jun 2005, 05:14:43 »
like this:
;in a script or a trigger

;condition field
@!(man in helicopter)
~1
;activation field
man playMove "IDON'T KNOW WHAT SALUTE IS"
~2
sniper doFire man

if you put this in a trigger you put the activation:
man playMove "IDON'T KNOW WHAT SALUTE IS"; sniper doFire man

Though you are going to have to make A LOT of work to make this thing work, like placing the sniper in the right position and so on...  ;)

zenman1

  • Guest
Re:How to make AI assassinate
« Reply #2 on: 25 Jun 2005, 06:15:11 »
thanks this does work!