Part of StarfallEx namespace
๐ External
hook.add("EntityTakeDamage", "name", function(target, attacker, inflictor, amount, type, position, force) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called when an entity is damaged
Parameters
| Name | Type | Description |
|---|---|---|
target | Entity | Entity that is hurt |
attacker | Entity | Entity that attacked |
inflictor | Entity | Entity that inflicted the damage |
amount | number | How much damage |
type | number | Type of the damage |
position | Vector | Position of the damage |
force | Vector | Force of the damage |
Returns
| Type | Description |
|---|---|
boolean | Return true to prevent the entity from taking damage |
Examples
No examples available.
Used In
No usages found in the codebase.