Consistency/data/entities/animals/boss_wizard/spawn_wizard.lua

15 lines
477 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 * entity_id )
local opts = { "wizard_tele", "wizard_dark", "wizard_poly", "wizard_homing", "wizard_weaken", "wizard_twitchy", "wizard_neutral", "wizard_hearty", "wizard_returner" }
for i=1,1 do
local rnd = Random( 1, #opts )
EntityLoad( "data/entities/animals/" .. opts[rnd] .. ".xml", x, y )
end
EntityKill( entity_id )