Event
Prop.TakeDamage
When Prop takes Damage
Syntax
Prop.Subscribe("TakeDamage", function(self, damage, bone, type, from_direction, instigator, causer)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
self
|
Prop | — | the object that takes the damage |
damage
|
integer | — | amount of damage |
bone
|
string | — | Damaged bone |
type
|
DamageType | — | Damage Type |
from_direction
|
Vector | — | Direction of the damage relative to the damaged actor |
instigator
optional
|
Player? | — | The player which caused the damage |
causer
optional
|
Actor? | — | The object which caused the damage |