Hello!
Is there way to get the specific damage that player gets from other player?
I want to grant coins depends on the amount of the damage.
Thank you!
Hi Kitagawa,
That information will be passed in the damage_result struct.
The Verse implementation of this would look similar to this:
FortChar.DamagedEvent().Subscribe(OnDamaged)
OnDamaged(DamageResult: damage_result):void=
if:
AmountofDamage := fort_character[DamageResult.Amount]
then: #add damage to coins
1 Like