Difference between revisions of "DCS func addCommandForGroup"
From DCS World Wiki - Hoggitworld.com
Line 54: | Line 54: | ||
for i = 1, #tbl do | for i = 1, #tbl do | ||
if Group.getByName(tbl[i]) then | if Group.getByName(tbl[i]) then | ||
− | local groupId = Group.getByName(tbl[i]):getID | + | local groupId = Group.getByName(tbl[i]):getID() |
missionCommands.addCommandForGroup(groupId, 'Halp', nil , imLost, tbl[i]) | missionCommands.addCommandForGroup(groupId, 'Halp', nil , imLost, tbl[i]) | ||
end | end |