31 lines
873 B
Plaintext
31 lines
873 B
Plaintext
|
function actor_on_first_update()
|
||
|
local pool = {
|
||
|
["gar_endless_night_spawn_01"] = {
|
||
|
pos = vector():set(-210.73924255371, 0.29106289148331, -34.128147125244),
|
||
|
smart = "gar_smart_terrain_1_5",
|
||
|
},
|
||
|
["gar_endless_night_spawn_02"] = {
|
||
|
pos = vector():set(197.09075927734, 1.3092757463455, -109.58041381836),
|
||
|
smart = "gar_smart_terrain_6_6",
|
||
|
},
|
||
|
["gar_endless_night_spawn_03"] = {
|
||
|
pos = vector():set(270.46417236328, 0.50552141666412, 177.38319396973),
|
||
|
smart = "gar_smart_terrain_8_3",
|
||
|
}
|
||
|
}
|
||
|
|
||
|
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
|