Skip to content

Element events Init

Jérôme Leclercq edited this page Dec 8, 2020 · 4 revisions

Element event:Init

Description:

Called right after the entity creation, this event is used to initialize the element and its variables.

Parameters:

  1. self: Initializing entity.

Remarks:

  1. This event is guaranteed to be the first to be triggered.

Example code:

entity:On("Init", function (self)
	self.Variable = 42
end)

Clone this wiki locally