this is melee pvp using 5.6 and blueprints
off of the event any damage how do i award coins to the player that got the kill?
(already have the coin system working)(already have health and player death working)
i have tried setting last damage causer and casting after player death both player state and controller been looking online for days and cant find anything that goes off of event any damage
Not sure which part you exactly having trouble with but..
On high level if you have Damage System & Inventory (Coin) System ready.
When Object dies you should already have the last DamageCauser and Instigator so hold that as a variable and we can know now simply what made the “KillingBlow”
So OnDamange(HasAuthority)→HealthZero→OnDeath
OnDeath(Server)→Instigator (KillerController)→CheckIf(Valid & not equal to self)→Event (RewardKill (KillerController, VictimController) )
RewardKill(Server)→GameMode→AwardKill (KillerController, VictimController)→ EventOnReward
OnReward→AddCoins→Your regular gameflow.
Generally instigators or hit info returning null can cause problems and logic that doesn’t runs on the correct place (server client)
Let us know which part you exactly see a failure on debug.