Who destroyed the tank?

Since the editor event for vehicle destroy does not trigger, I went to Verse. I simply want to grant score to player/team who destroyed enemy tank.

I subscribed to destroy event:

    # Signaled when a vehicle is destroyed.
    VehicleDestroyedEvent<public>:listenable(tuple()) = external {}

But when it is called, I only get this “tuple()” which is empty, right? I still can now know which player destroyed the vehicle.

So my question is, does anyone have an idea how to associate VehicleDestroyedEvent with agent that was driving the tank that made the kill. Or team to which the tank belongs.

I can get the agent at the time when he enters the vehicle through another callback:

    AgentEntersVehicleEvent<public>:listenable(**agent**) = external {}

But how to associate those?

1 Like