Wrecking Crew Posted November 30, 2014 Posted November 30, 2014 (edited) v1.2.11 I want to activate a mortar group when an infantry group reaches a certain waypoint. This script fails to execute when it is run from an Advanced Waypoint Action in a Run Script dialog box: trigger.action.activateGroup('RDR VGrp82-1 Mortar') For a work around this will set a flag from the Run Script dialog box, and the flag can then activate the group: trigger.action.setUserFlag(38207, 1) Why does the first one fail while the second trigger action work? WC Edited November 30, 2014 by Wrecking Crew 2 Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
ajax Posted November 30, 2014 Posted November 30, 2014 The first requires a group object, not name. Try trigger.action.activateGroup(Group.getByName('RDR VGrp82-1 Mortar')) 1 1
Wrecking Crew Posted November 30, 2014 Author Posted November 30, 2014 Thanks Ajax. I keep getting tripped up on the 'object' vs 'name' thing. WC Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Recommended Posts