Wrench Posted July 7, 2018 Posted July 7, 2018 Hey all. I'm using mist.ground.buildWP and mist.goRoute to create waypoints for a unit, which works great. But is it possible to add a DO SCRIPT to the waypoints created by mist.ground.buildWP? I'd like to have the last waypoint created, i.e. Path, to call the function that created the waypoints in the first place. This is to add some features to my Carrier Script. Thanks much Wrench Carrier Script.
Wrench Posted July 9, 2018 Author Posted July 9, 2018 Furthermore, is it possible to add waypoint actions at all? I've been trying to get activatebeacon to work, and I copied the table straight from a mission that has it on a ME waypoint, but it won't work. Carrier Script.
Zayets Posted July 9, 2018 Posted July 9, 2018 It should be possible. I believe command should work. https://wiki.hoggitworld.com/view/DCS_command_script [sIGPIC]OK[/sIGPIC]
Wrench Posted July 9, 2018 Author Posted July 9, 2018 What's odd it this works, path[1]["task"] = { ["id"] = "ComboTask", ["params"] = { ["tasks"] = { [1] = { ["number"] = 1, ["auto"] = false, ["id"] = "WrappedAction", ["enabled"] = true, ["params"] = { ["action"] = { ["id"] = "ActivateBeacon", ["params"] = { ["type"] = 4, ["AA"] = false, ["unitId"] = 1, ["modeChannel"] = "X", ["channel"] = 69, ["system"] = 3, ["callsign"] = "STN", ["bearing"] = true, ["frequency"] = 1156000000, }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [1] }, -- end of ["tasks"] }, -- end of ["params"] }, -- end of ["task"] mist.goRoute(group1 ,path) but this doesn't path[4]["task"] = { ["id"] = "ComboTask", ["params"] = { ["tasks"] = { [1] = { ["enabled"] = true, ["auto"] = false, ["id"] = "WrappedAction", ["number"] = 1, ["params"] = { ["action"] = { ["id"] = "Script", ["params"] = { ["command"] = "wrench_orbit_carrier('carrier','tanker')", }, -- end of ["params"] }, -- end of ["action"] }, -- end of ["params"] }, -- end of [1] }, -- end of ["tasks"] }, -- end of ["params"] }, -- end of ["task"] mist.goRoute(group1 ,path) Carrier Script.
Recommended Posts