You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jérôme Leclercq edited this page Dec 8, 2020
·
3 revisions
Element event:Destroyed
Description:
Called whenever this element is about to get removed from the match.
Parameters:
self: Triggered entity.
Remarks:
As this event doesn't return anything, it's possible to bind an async callback on it. However one must be careful when doing so, as the entity will no longer exists on the very next tick.
Example code:
entity:On("Destroyed", function (self)
print("I will no longer exist next tick!")
end)