Difference between revisions of "DCS command start"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
Line 28: | Line 28: | ||
'''Optional Parameters''': | '''Optional Parameters''': | ||
|enum= N/A | |enum= N/A | ||
− | |exam= | + | |exam= The following verifies the group still exists and commands the group to start. |
− | + | <pre> | |
+ | local MigGrp1 = Group.getByName('Bandit-1') | ||
+ | if MigGrp1:isExist() then | ||
+ | MigCtrl1 = MigGrp1:getController() | ||
+ | MigCtrl1:setCommand({id = 'Start', params = {}}) | ||
+ | end | ||
+ | </pre> | ||
|notes= | |notes= | ||
Latest revision as of 00:09, 30 December 2022