Home   Help Search Login Register  

Author Topic: Which bullet hit what target  (Read 833 times)

0 Members and 1 Guest are viewing this topic.

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Which bullet hit what target
« on: 19 Mar 2003, 22:37:29 »
What is the scripting command to determine who got what kill?
I need to be able to determine what persons bullet killed unit x.

I can start a trigger with the condition getdammage x =1
but then where to from there? or is there a better way?

Any help appreciated

Vortrog

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Which bullet hit what target
« Reply #1 on: 19 Mar 2003, 23:18:58 »
OK, been doing this 5 times in the last two days, so now
i let it be done by the one who asks himself.

Click on the search button - then search for:

addeventhandlers

You will see a lot of threads, where they are explained.

Then if you scroll down a little bit, you will even find
a quote, containing the official description for eventhandlers.

Watch out for this one - good luck  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Re:Which bullet hit what target
« Reply #2 on: 20 Mar 2003, 04:07:33 »
ta Chris.
Probably would have been easier to direct me to the ComRef, cause th latest v1.85 comref gives enough info for me to guess the rest.
Pity it wasnt around for earlier versions of OFP. Only people with v1.85 or higher get to use this baby

Vortrog