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