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

31 lines
863 B
Plaintext
Raw Normal View History

function actor_on_first_update()
local pool = {
["cit_endless_night_spawn_01"] = {
pos = vector():set(-134.28648376465, -1.4032030105591, -330.41253662109),
smart = "zombie_smart_ds_mlr_1",
},
["cit_endless_night_spawn_02"] = {
pos = vector():set(51.318702697754, 3.5220413208008, 68.45654296875),
smart = "zombie_smart_ds_mlr_2",
},
["cit_endless_night_spawn_03"] = {
pos = vector():set(-221.71157836914, 9.9104175567627, -180.50151062012),
smart = "cit_kanaliz1",
}
}
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