Home   Help Search Login Register  

Author Topic: checking if a unit is facing the other  (Read 413 times)

0 Members and 1 Guest are viewing this topic.

The HarvesteR

  • Guest
checking if a unit is facing the other
« on: 15 Sep 2003, 05:29:22 »
Hello  :D :D

i'm back after a long time without playing OFP...
and i have to admit, i'm a little rusted ::)

i was improving my vehicle fixing script
(a script to give the player the ability to fix a broken vehicle, available here at OFPEC in the script snippets section).

and i wanted to make the player NEED to face the vehicle
for the repair action to appear....

but i couldn't figure out which commands to use... ???

i want to make the script check if the player is facing the car before continuing...
of course there should be a wide threshold. :P


a second way to do this would be to simply force the player to face the car when peforming the repair sequence using some command..
('dowatch' didn't work)

any ideas? :help:

tnx in advance

harvester :)

Unnamed

  • Guest
Re:checking if a unit is facing the other
« Reply #1 on: 15 Sep 2003, 07:21:41 »
Try this function:

http://www.ofpec.com/editors/funcref.php?filter_func=10

Sounds like it will do the job?