Jump to content

IR0B0T

Members
  • Posts

    2
  • Joined

  • Last visited

  1. tried this with vscode and cmake, used the lua (includes + lib) from SRS Repo, but had to change #define DllExport extern "C" __declspec(dllexport) with an extra extern "C". Using vcpkg toolchain in vscode, works (for me )
  2. nullI did not find a solution by reading the fine manual, to the following problem. For some ai behavior i need to put some fire on a road in front of a convoy of vehicles, possibly multiple times. The following code, causes the doorgunners of a UH1 (with rockets) to put some MG rounds near the target point (possibly ignoring mountains etc. in the way ). Also the target point get a nice crosshair on the F10 map. The problem is, that setTask ?should? https://wiki.hoggitworld.com/view/DCS_func_setTask replace the Task, hopefully cleaning up the strafing targets. But the strafing targets remain on the map, and get fired upon by the UH1 if it flies by again.. Perhaps there is some way to get rid of the old target points? And how do i get the ai to fire the rockets. I can get the ai to have a nice initial point following the convoy lined up on the target point, then setting the strafing task, and the ai does a lot, except firing rockets . I tried to do the same thing with bombs and an A10 (using a bombing task of course) as well as an F18 with rockets. Only the bombing works, an then the AI needs about 45 Seconds (at least, also some KM distance) of undisturbed peace after the bombing task is given to get the bombing done. Is there a way to get the AI to just do a bombing/strafing on a spot 1km straight ahead? local Strafing = { id = 'Strafing', params = { point = { x = attack_point.x , y = attack_point.y}, weaponType = Weapon.flag.AnyRocket, attackQty = 1 } } group:getController():setTask(Strafing) ------------------------------------------------------------------------------------------------------------------------------ so trying to do this: if group:getController():hasTask() then group:getController():popTask() trigger.action.outText("Popping task for " .. agentname, 20), i never seen this output so i assume hasTask() alway returns false end group:getController():setTask(Strafing) does not change the behavior nor does using pushTask instead of setTask even doing this group:getController():popTask() trigger.action.outText("Popping task for " .. agentname, 20) -- end group:getController():pushTask(Strafing) does not change the behaviour
×
×
  • Create New...