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

31 lines
870 B
Plaintext
Raw Normal View History

function actor_on_first_update()
local pool = {
["agr_endless_night_spawn_01"] = {
pos = vector():set(28.622802734375, 4.2881875038147, -124.99558258057),
smart = "agr_smart_terrain_4_6",
},
["agr_endless_night_spawn_02"] = {
pos = vector():set(52.704040527344, 16.574716567993, 123.60317993164),
smart = "agr_smart_terrain_5_2",
},
["agr_endless_night_spawn_03"] = {
pos = vector():set(-97.329170227051, 12.251251220703, 158.92121887207),
smart = "agr_smart_terrain_2_2",
}
}
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