Jump to content

Recommended Posts

Posted

Hi,

 

this is basically the same as already written in https://forums.eagle.ru/showthread.php?t=200408 but the bug sections seems to be a better fit. I also updated the example mission to use DCS 2.5

 

I have the following setup. A Bandit-Group with the task "Attack Group" (with the task's group option being set to the Player's group). The expected behavior is that the bandits intercept the player and this works so far.

 

However, if I activate "Late Activation" and activate the group through LUA, the task "Attack Group" is lost/removed (group:getController():hasTask() is false). Strangely, if I setup a trigger in the editor with the action "GROUP ACTIVATE" it works perfectly fine and the task is not lost.

 

So why is the task removed when activating the group with LUA (using the code below)?

 

local group = Group.getByName('Bandit')
group:activate()
-- same issue with: trigger.action.activateGroup(group) 

 

I've attached an example mission. In this mission there are two F10 Radio options. One for activating the bandit group with the trigger action "GROUP ACTIVATE" and another one with "DO SCRIPT" (which executes the code above).

 

When using the one with the trigger action, it works - the bandit group will fly to the player upon activation. However, with the LUA action, it does not work - the bandit group will RTB immediately after activation.

 

Thanks

Late Activation Task Issue Test.miz

Author of Scratchpad, DATIS, and maintainer of DCS-gRPC.

  • Recently Browsing   0 members

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