How to get PlayerElimination Event correctory?

Hello!
I want to ask about player elimination event.
To track the event Im using elimination_manager_device.
If I wrote the eliminated and elimination event at same place , is it going to get the correct player that kill and killed agent?(Check the image below pls)
Is there any better way to do this?
Thank you!!

image

Methods in .Subscribe() parentheses must not include parentheses so it must be written this way:
.Subscribe(PlayerKill)
.Subscribe(PlayerKilled)

Is this going to get the correct person who kill and who killed ?

Yes. The elimination event will pass the eliminator argument to the function and eliminated event will pass the eliminated player argument to the function. So if player A eliminated player B, A will be passed into elimination event and B will be passed into eliminated event

No you cannot retrieve the killer that way, you have to use fort_character.EliminatedEvent to achieve that, here’s a good example of how it can be used

Hey Lama! I’m sorry but I’m quite confused… I thought you can retrieve the killer using .EliminationEvent. Did I misunderstand OP?

Yes but doing it in 2 separate functions can lead to errors. SInce both functions only return one agent at a time.

Using fort_character.EliminatedEvent returns an elimination_result that contains both the killer and the killed

image

I thought this was more convenient, I personally use my own custom elimination manager now :man_shrugging:

1 Like

Ahhh now I get what are you up to. We learn a new thing everyday!

1 Like

This might work more better . Thank you very much.
SeedohFN san Thank you for your reply also!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.