Home   Help Search Login Register  

Author Topic: Looking at target  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Looking at target
« on: 24 Aug 2003, 12:59:55 »
Hi. Any1 know how I can make some sort of script condition that makes when a player looks at a specifik object, like a soldier, the condition is checked. That would be great. Many thanks! :-*

Rubble_Maker

  • Guest
Re:Looking at target
« Reply #1 on: 24 Aug 2003, 21:51:55 »
I can explain to you how to make this work, but you will need to know a bit vector math. I'm afraid there is no command in OFP to do this, so you will have to write your own function.

Unnamed

  • Guest
Re:Looking at target
« Reply #2 on: 25 Aug 2003, 03:15:45 »
Hi,

Take a look at this function:

DirToObj

And you may want to use the KnownsAbout command to test if the Line Of Site is obscured?
« Last Edit: 25 Aug 2003, 03:17:25 by Unnamed »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Looking at target
« Reply #3 on: 25 Aug 2003, 08:12:05 »
Thx! I'll look into this later! :-*