function spawn_taynik local items_table bread vodka ammo_12x70_buck lo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
function spawn_taynik()
local items_table = {
["bread"] = 3,
["vodka"] = 2,
["ammo_12x70_buck"] = 5
}
local obj = alife():create("m_taynik",position,levelvertex,gamevertex)
for item, num in pairs(items_table) do
for i=1,num do
alife():create(item, obj.position, obj.m_level_vertex_id, obj.m_game_vertex_id, obj.id)
end
end
end