Home   Help Search Login Register  

Author Topic: Getting the enemy to hunt you down  (Read 839 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!