function actor_on_first_update() local pool = { ["bar_endless_night_spawn_01"] = { pos = vector():set(197.84326171875, 2.120393037796, -84.757629394531), smart = "bar_zastava_dogs_lair", }, ["bar_endless_night_spawn_02"] = { pos = vector():set(42.580982208252, -0.0022871494293213, 207.98942565918), smart = "bar_zastava_dogs_lair_2", }, ["bar_endless_night_spawn_03"] = { pos = vector():set(147.11489868164, -0.003469854593277, 64.117401123047), smart = "bar_visitors", } } 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