6,834
edits
(Added JavaScript example) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onElementDestroy | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = an element is destroyed | ||
| | |arg1 = Element element The element that is about to be destroyed. | ||
|cancel = true | |||
| | |||
|exampleJS = addEventHandler('OnElementDestroy', (event, element) => { | |exampleJS = addEventHandler('OnElementDestroy', (event, element) => { | ||
message(`Element with id ${element.id} has been destroyed.`, COLOUR_RED) | message(`Element with id ${element.id} has been destroyed.`, COLOUR_RED) |
edits