Event trigger "Entity is attacked": a procedure using it starts when this happens in the game. It gives the procedure entity, sourceentity, world, x, y, z, amount, immediatesourceentity, damagesource. The event can be canceled.
| Name | Type |
|---|---|
entity | entity |
sourceentity | entity |
world | world |
x | number |
y | number |
z | number |
amount | number |
immediatesourceentity | entity |
damagesource | damagesource |
entity.