Home   Help Search Login Register  

Author Topic: doWatch east?  (Read 837 times)

0 Members and 1 Guest are viewing this topic.

ProudPotter2490

  • Guest
doWatch east?
« on: 15 Jul 2005, 17:17:01 »
Hey all!
I'm trying to get a unit in a Machine gun to watch the eastern direction for enemies. Does anyone know how I can have him do this? Thanks :)!
ProudPotter2490 :afro:

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:doWatch east?
« Reply #1 on: 15 Jul 2005, 17:30:18 »
Click on the Show IDs button in the mission editor.  Find an object that is a long way from the unit in the directopn you want him to look.  Say the ID number of the object is 12345.  In the init field of the unit put:

this doWatch (object 12345)
« Last Edit: 15 Jul 2005, 17:30:51 by THobson »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:doWatch east?
« Reply #2 on: 15 Jul 2005, 18:07:19 »
alternatively, create four game logics called gl_north, gl_south, etc, place them at the edges of the map and use

Code: [Select]
loon_name dowatch getpos gl_north
that's if you can afford to have four spare game logics in the mission without worrying about lag ;) THobson's is the 'cleaner' approach.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:doWatch east?
« Reply #3 on: 15 Jul 2005, 22:50:37 »
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!