Divergent/mods/Redone Collection/gamedata/scripts/redone_endless_ros_night_mu...

31 lines
873 B
Plaintext
Raw Permalink Normal View History

function actor_on_first_update()
local pool = {
["ros_endless_night_spawn_01"] = {
pos = vector():set(-221.39151000977, 0.098205626010895, 115.52049255371),
smart = "ros_smart_poltergeist2",
},
["ros_endless_night_spawn_02"] = {
pos = vector():set(-288.29718017578, -0.0036440342664719, 195.13694763184),
smart = "ros_smart_monster4",
},
["ros_endless_night_spawn_03"] = {
pos = vector():set(-285.64953613281, 0.54708015918732, 115.35409545898),
smart = "ros_smart_monster5",
}
}
for sec,v in pairs(pool) do
local se = get_story_se_item(sec)
if not (se) then
local pos = v.pos
local vid = level.vertex_id(pos)
local gid = SIMBOARD.smarts_by_names[v.smart].m_game_vertex_id
se = alife():create(sec,pos,vid,gid)
end
end
end
function on_game_start()
RegisterScriptCallback("actor_on_first_update",actor_on_first_update)
end