1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00

Updated entity scripting (markdown)

False.Genesis 2019-09-10 05:03:32 +02:00
parent ac656c8361
commit 02e152e9a7

@ -105,7 +105,7 @@ Same parameters as `damage()`.
Called to check whether a shot should actually hit an entity. This function is only called when there is a collision, and is used to decide whether to collide or whether the shot passes through.
If the function returns false, the shot passes through. If the function returns true, doesn't exist, or causes an error, the shot hits.
### `function deathNotify(me, ro)`
### `function deathNotify(me, ro)` __[OSE only]__
An entity has an internal _death notification list_ that stores RenderObjects that want to be notified when the entity is destroyed.
For each entity in this list, `deathNotify(me, dead)` is called (`me` is the receiver of the notifiation, `dead` the thing that is getting destroyed).