Jump to content

Recommended Posts

Posted (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 by Wrecking Crew
  • Like 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.

Posted

The first requires a group object, not name. Try trigger.action.activateGroup(Group.getByName('RDR VGrp82-1 Mortar'))

  • Like 1
  • Thanks 1
Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...