OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Vortrog on 19 Mar 2003, 22:37:29

Title: Which bullet hit what target
Post by: Vortrog 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
Title: Re:Which bullet hit what target
Post by: Chris Death 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
Title: Re:Which bullet hit what target
Post by: Vortrog 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