PilotPyles Posted February 6, 2023 Share Posted February 6, 2023 When we catch a kill event in a script, we no longer get a valid player name attached with the event. So we know something died, we know what died, but we have no idea who did it. I've tried all sorts of weapons, always with the same result. Link to comment Share on other sites More sharing options...
cfrag Posted February 6, 2023 Share Posted February 6, 2023 I didn't know that the event ever passed a player name with the event, neither for victim nor victor. You should be able to derive the victor with initiator:getPlayerName() - if the result is non-nil a player killed event.target. Be sure to guard initiator.getPlayerName against not being implemented. If target still exists, you can likewise get the player's name who got killed. Else, catch the birth and playerEnterUnit events, and note down that unit's name indexed by the player who controls it. When the kill event comes, simply looking up the unit's name in your list should return the name of the player who got deep-sixed. Link to comment Share on other sites More sharing options...
Sedlo Posted February 7, 2023 Share Posted February 7, 2023 I'm seeing this also with eject events, too... Something has totally screwed up. My Youtube Channel MY DCS MISSIONS Link to comment Share on other sites More sharing options...
Recommended Posts