How to get the Killer of a victim in vehicle?
#1

hi,

as the title says, how can i determine the killer when someone dies in a vehicle.
Lets assume the folowing case:

Player A is the driver of a vehicle.
player B is on foot or also in a vehicle and shots Player A that is in a vehicle.
The vehicle of Player A is on fire (due to high damage) and explodes.
In this case there would be no killer detected by the script.
The killer would be an INVALID_KILLERID.

So how could i get the player ID of the killer of Player A that caused the vehicle of Player A to explode?

Please help me with that issue as i really dont know how to do that.
I already played around with an include from this forum that added a callback called OnVehicleDamage but no success.
Also i tried the Callback OnPlayerWeaponShot but as the wiki page states, this callback doesnt work when the driver is the shooter.


Please, i hope someone can help me with this.


thank you a lot in advance

best regards, pawnoQ
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)