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

31 lines
835 B
Plaintext
Raw Normal View History

function actor_on_first_update()
local pool = {
["trc_endless_night_spawn_01"] = {
pos = vector():set(138.85020446777, 3.9266076087952, -124.36943054199),
smart = "trc_sim_5",
},
["trc_endless_night_spawn_02"] = {
pos = vector():set(198.9889831543, 10.085237503052, 163.07121276855),
smart = "trc_sim_11",
},
["trc_endless_night_spawn_03"] = {
pos = vector():set(-52.121494293213, 13.674411773682, 285.16284179688),
smart = "trc_sim_17",
}
}
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