mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
Updated entity scripting (markdown)
parent
ac656c8361
commit
02e152e9a7
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue