#How to detect when a player is killed and output the player killed and the killer

25 messages · Page 1 of 1 (latest)

vast lance
#

ok so like i need help for this game im making and i need a event receiver that executes when a player died and outputs the player that died, and the player that killed that player that died - i hope i made sense

static wagon
#

The only way with cv2 is to use the event in the player definition board “projectile hit player” and then use combatant chips to see if they’re alive or not

#

This is bad for a number of reasons but mainly because pdb events aren’t localized and combatant chips are broken

#

This is much more reliable, it just only detects the killing player not the killed player

#

But it can be modified to

#

This is all you have to do(the x just means disconnect that port)

#

But make sure to use a different role then you did with the eliminated player

grave belfry
grave belfry
vast lance
#

oh

#

but im using swords

#

rro swords

grave belfry
vast lance
#

fair

vast lance
static wagon
#

That’s what it will output if the above statement is true

#

So for this case it outputs the player who was hit

vast lance
#

oh

#

so kinda like a cv2 if value?

static wagon
#

Yeah

vast lance
#

oh ok

grave belfry
vast lance
#

yeah ik