function actor_on_first_update() local pool = { ["ds_endless_night_spawn_01"] = { pos = vector():set(-13.702819824219, -0.45751050114632, -327.75891113281), smart = "ds2_st_dogs", }, ["ds_endless_night_spawn_02"] = { pos = vector():set(248.58453369141, -0.55253577232361, -86.308952331543), smart = "ds_boars_nest", }, ["ds_endless_night_spawn_03"] = { pos = vector():set(207.64343261719, -2.2147569656372, 552.82995605469), smart = "ds_kem3", } } 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