SlashCo Wiki

Player:TakeDamageWithEffect

  Player:TakeDamageWithEffect( number damageAmount, Entity attacker, Entity inflictor )

Description

Plays a damage sound via Player:PlayDamageSound (its range scaled by the damage amount) and then applies damage to the player with TakeDamage.

Arguments

1number damageAmount

The amount of damage to apply

2Entity attacker

The entity responsible for the damage

3Entity inflictor

The entity that inflicted the damage