For the complete documentation index, see llms.txt. This page is also available as Markdown.

EntitySpawn

Fires when an Entity spawns

Example usage:

-- Make all entities have only 1 health
Events.EntitySpawn(function(event)
    event.entity:setMaxHealth(1)
end)

Parameters

entity: Entity

The spawning entity

Last updated