Introduction/events-end

End Event

End event can be useful when you want something to execute right before the part

gets destroyed.


That event executes only when the part gets destroyed using the editor or using

part_destroy function.


Example:

end::

{

gm_stock->console_log("1")

gm_stock->console_log("2")

gm_stock->console_log("3")

}

Example above uses move (::) operator to execute everything after end:: event.

documentation

Outdated! Updates coming soon.