Hi,
i am working on a little mission. I have a problem with a script that runs from a "killed" eventhandler in multiplayer:
plane addEventHandler ["killed",{_this exec "Event.sqs"}]
Now we have the Event.sqs:
_object = _this select 0
_killer = _this select 1
; insert code here
# Regular
hint "this was a regular kill"
exit
# Teamkill
hint "this was a teamkill"
exit
My question is:
Is there a reliable way for the computer that runs that script to find out, if the _killer did a teamkill, i mean, if the _object was friendly to him?
The problem here is, that every killed object (planes, soldiers, tanks, etc.) are considered to be an object of the civilian side. Only sometimes (mostly with vehicles) the eventhandler has the correct side of the object present, but a fraction of a second later, not anymore, and in MP we have to add effects of lag to the whole thing...