function actor_on_first_update() local pool = { ["yan_endless_night_spawn_01"] = { pos = vector():set(161.0279083252, -0.71909606456757, 65.10375213623), smart = "yan_smart_terrain_1_6", }, ["yan_endless_night_spawn_02"] = { pos = vector():set(-209.48184204102, 6.8956809043884, -161.16413879395), smart = "yan_smart_terrain_4_2", }, ["yan_endless_night_spawn_03"] = { pos = vector():set(-161.47422790527, 6.5996909141541, -308.79528808594), smart = "yan_smart_terrain_6_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