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

31 lines
871 B
Plaintext
Raw Normal View History

function actor_on_first_update()
local pool = {
["mar_endless_night_spawn_01"] = {
pos = vector():set(-152.15197753906, 0.80081522464752, 86.731491088867),
smart = "mar_smart_terrain_3_7",
},
["mar_endless_night_spawn_02"] = {
pos = vector():set(272.58688354492, 4.4342155456543, 55.053783416748),
smart = "mar_smart_terrain_8_8",
},
["mar_endless_night_spawn_03"] = {
pos = vector():set(364.51748657227, 2.1262073516846, 115.86725616455),
smart = "mar_smart_terrain_10_7",
}
}
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