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: Getting the enemy to hunt you down  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

CR_Elson

  • Guest
Getting the enemy to hunt you down
« on: 26 Apr 2005, 17:04:36 »
i need a script for my college course that will enable the enemy to get the position of the player say every 30secs or so and follow them
can anybody help me.

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Getting the enemy to hunt you down
« Reply #1 on: 26 Apr 2005, 18:26:06 »
Very easy.

Code: [Select]
_Guy = _this select 0

#loop
_Guy domove getpos player
~30
?(Alive _Guy):goto"Loop"
exit
I like your approach, lets see your departure.
Download the New Flashlight Script!

CR_Elson

  • Guest
Re:Getting the enemy to hunt you down
« Reply #2 on: 26 Apr 2005, 20:06:02 »
cheers thanks man

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Getting the enemy to hunt you down
« Reply #3 on: 26 Apr 2005, 23:11:19 »
Here is a script that is a little more realistic, in that the enemy doesn't automatically know exactly where you are:

http://www.ofpec.com/editors/resource_view.php?id=692
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!