Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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)

  • Recently Browsing   0 members

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