Consistency/data/entities/animals/boss_pit/boss_pit_spawner.lua

12 lines
286 B
Lua
Raw Normal View History

2021-08-20 01:53:47 +00:00
dofile_once("data/scripts/lib/utilities.lua")
local entity_id = GetUpdatedEntityID()
local x, y = EntityGetTransform( entity_id )
SetRandomSeed( x, y )
if ( Random( 1, 10 ) == 5 ) then
EntityLoad( "data/entities/animals/boss_pit/boss_pit.xml", x, y )
end
EntityKill( entity_id )