OnEntityAdded||doc136863

September 20, 2022

Format

local event = Event:GetEvent("OnEntityAdded")

Describe

Entity objects emit this event after spawning.

Callback function parameters

Type name introduce
Entity entity Generated entity

Code example

local event = Event:GetEvent("OnEntityAdded")
event:Bind(function(entity)
    print("OnEntityAdded", entity)
end)