EntityDestroyed: Difference between revisions
(Created page with "Event triggered when an entity is destroyed ==Parameters== * '''entity''' ==Example== <syntaxhighlight lang="javascript"> // Need to be done </syntaxhighlight>") |
mNo edit summary |
||
| Line 6: | Line 6: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
// | mp.events.add("entityDestroyed", entity => { | ||
// Do what you want | |||
}); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:11, 19 January 2018
Event triggered when an entity is destroyed
Parameters
- entity
Example
mp.events.add("entityDestroyed", entity => {
// Do what you want
});