M.I.S.T. - Skriptschnipsel

Alles rund um die Funktionen des ME

Moderator: JaBoG32 Stab

Benutzeravatar
JaBoG32_Herby
Senior Member
Beiträge: 1742
Registriert: 4. Dez 2009, 11:32

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_Herby » 2. Jun 2013, 08:25

Das ist auch hübsch.

Patrouillenfunktion für Groundunits.

Code: Alles auswählen

mist.ground.patrol = function(gpData, pType)
	
	local tempRoute = {}
	local useRoute = {}
	if type(gpData) == 'string' then
		gpData = Group.getByName(gpData)
	end

	local posStart = mist.getLeadPos(gpData)
	if not route then
		tempRoute = mist.getGroupRoute(gpData:getName())
	else
		for i = 1, #route do
			tempRoute[#tempRoute +1] = mist.ground.buildWP(route[i], form, speed)
		end
	end
	
	useRoute[#useRoute + 1] = mist.ground.buildWP(posStart, form, speed)
	for i = 1, #tempRoute do
		useRoute[#useRoute + 1] = mist.ground.buildWP(tempRoute[i], form, speed)
	end
		
	if pType and pType == 'doubleBack' then
		for i = #tempRoute, 2, -1 do
			useRoute[#useRoute + 1] = mist.ground.buildWP(tempRoute[i], form, speed)
		end
	end

	local tempTask = {
		id = 'WrappedAction', 
		params = { 
			action = {
				id = 'Script',
				params = {
					command = tostring('local group = ... \n mist.ground.patrol(group:getName() , ' .. mist.utils.basicSerialize(pType) .. ')') , 
					
				},
			},
		},
	}

	useRoute[#useRoute].task = tempTask
	mist.goRoute(gpData, useRoute)
end
Bild

Benutzeravatar
JaBoG32_Herby
Senior Member
Beiträge: 1742
Registriert: 4. Dez 2009, 11:32

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_Herby » 2. Jun 2013, 08:28

Und das setzt dem Ganzen noch die Krone auf.

http://forums.eagle.ru/showthread.php?t=107609

Artillery Enhancement Script
Bild

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 2. Jun 2013, 11:05

Klingt interessant, stecke aber gerade selber in einem "Problem" fest.

Ich will zufällig generierten FixedWing Verkehr an einem Flugfeld skripten, also ankommenden und abfliegende Transportmaschinen, die in einem defnierten Raum sich bewegen. Bisher habe ich zwei Funktionen die jede für sich funktioniert. Eine um zufällige Fliegertypen auf dem Flugfeld oder in Luft spawnen zu lassen:

Code: Alles auswählen

--MIST 2.0 required
--Following trigger zones need to be placed in the ME:
--1: Zone called 'airspawnzone1', which defines the area in which planes will airspawn
--2: Zone called 'landingpoint', which includes the airport on which the planes will land
--3: Zone called 'entrypoint1', which defines the entry/exit point of the airfield the planes are set to land or takeoff

groupcounter = 0


function generateAirplane()

	randomnr1 = math.random(1,2) -- random for spawnpoints; 1=arrival, 2=depature
	randomnr2 = math.random(1,8) -- random for aircrafttype
	
	groupcounter = groupcounter + 1

	if randomnr2 == 1 
		then
			_aircrafttype = "C-17A" --or whatever type
		else
		if randomnr2 == 2
			then
			_aircrafttype = "Yak-40" --or whatever type
		else
		if randomnr2 == 3
			then
			_aircrafttype = "A-10C" --or whatever type
		else
		if randomnr2 == 4
			then
			_aircrafttype = "F/A-18C" --or whatever type
		else
		if randomnr2 == 5
			then
			_aircrafttype = "C-130" --or whatever type
		else
		if randomnr2 == 6
			then
			_aircrafttype = "Su-25T" --or whatever type
		else
		if randomnr2 == 7
			then
			_aircrafttype = "IL-76MD" --or whatever type
		else
		if randomnr2 == 8
			then
			_aircrafttype = "Su-25" --or whatever type
		end
		end
		end
		end
		end
		end
		end
	end
		

	
	if randomnr1 == 1
		then
			_spawnairplane = trigger.misc.getZone('airspawnzone1')
			_spawnairplanepos = {}
			_spawnairplanepos.x = _spawnairplane.point.x + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
			_spawnairplanepos.z = _spawnairplane.point.z + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
			_alt = 6000
			_speed = 250
			_waypointtype = "Turning Point"
			_waypointaction = "Turning Point"
			_airdromeId = nil
			route = 'arrival'
	else
		if randomnr1 == 2
			then
				_spawnairplane = trigger.misc.getZone('landingpoint')
				_spawnairplanepos = {}
				_spawnairplanepos.x = _spawnairplane.point.x + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
				_spawnairplanepos.z = _spawnairplane.point.z + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
				_alt = 88
				_speed = 0
				_waypointtype = "TakeOffParking"
				_waypointaction = "From Parking Area"
				_airdromeId = 24
				route = 'departure'
		end	
	end

			
			
	_airplanedata = {
                               ["modulation"] = 0,
                                ["tasks"] = 
                                {
                                }, -- end of ["tasks"]
                                ["task"] = "CAS",
                                ["uncontrolled"] = false,
                                ["route"] = 
                                {
                                    ["points"] = 
                                    {
                                        [1] = 
                                        {
                                            ["alt"] = _alt,
                                            ["type"] = _waypointtype,
                                            ["action"] = _waypointaction,
                                            ["alt_type"] = "BARO",
                                            ["formation_template"] = "",
                                            ["ETA"] = 0,
                                            ["airdromeId"] = _airdromeId,
                                            ["y"] = _spawnairplanepos.z,
                                            ["x"] = _spawnairplanepos.x,
                                            ["speed"] = _speed,
                                            ["ETA_locked"] = true,
                                            ["task"] = 
                                            {
                                                ["id"] = "ComboTask",
                                                ["params"] = 
                                                {
                                                    ["tasks"] = 
                                                    {
                                                       
                                                    }, -- end of ["tasks"]
                                                }, -- end of ["params"]
                                            }, -- end of ["task"]
                                            ["speed_locked"] = true,
                                        }, -- end of [1]
                                    }, -- end of ["points"]
                                }, -- end of ["route"]
                                ["groupId"] = 1,
                                ["hidden"] = false,
                                ["units"] = 
                                {
                                    [1] = 
                                    {
                                        ["alt"] = _alt,
                                        ["heading"] = 0,
                                        ["type"] = _aircrafttype,
                                        ["psi"] = 0,
                                        ["onboard_num"] = "10",
                                        ["parking"] = 19,
                                        ["y"] = _spawnairplanepos.z,
                                        ["x"] = _spawnairplanepos.x,
                                        ["name"] = string.format(groupcounter),
										["payload"] = 
                                        {
                                        }, -- end of ["payload"]
                                        ["speed"] = _speed,
                                        ["unitId"] = string.format(groupcounter),
                                        ["alt_type"] = "BARO",
                                        ["skill"] = "High",
                                    }, -- end of [1]
                                }, -- end of ["units"]
                                ["y"] = _spawnairplanepos.z,
                                ["x"] = _spawnairplanepos.x,
                                ["name"] = string.format(groupcounter),
                                ["communication"] = true,
                                ["start_time"] = 0,
                                ["frequency"] = 124,
                    }
		trigger.action.outText("airplane data generated", 3)
		coalition.addGroup(country.id.USA, Group.Category.AIRPLANE, _airplanedata)
		trigger.action.outText("airplane spawned", 3)
		
end

generateAirplane()
	
Und eine Funktion die Fliegern Wegpunkte generiert und diese abfliegen läßt:

Code: Alles auswählen

--MIST 2.0 required
--Following trigger zones need to be placed in the ME:
--1: Zone called 'airspawnzone1', which defines the area in which planes will airspawn
--2: Zone called 'landingpoint', which includes the airport on which the planes will land
--3: Zone called 'entrypoint1', which defines the entry/exit point of the airfield the planes are set to land or takeoff


groupcounter = 1 --airplanename = 1
route = 'departure' --waypoints set for departure, alternative 'arrival'

function generateWaypoints(_spawnairplane, _entrypoint1, _landingpoint1, waypointType)
				
	local waypoints = {}
					_spawnairplane = trigger.misc.getZone('airspawnzone1')
					_spawnairplanepos = {}
					_spawnairplanepos.x = _spawnairplane.point.x + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
					_spawnairplanepos.z = _spawnairplane.point.z + math.random(_spawnairplane.radius * -1, _spawnairplane.radius)
					
					_entrypoint1 = trigger.misc.getZone('entrypoint1')
					_entrypoint1pos = {}
					_entrypoint1pos.x = _entrypoint1.point.x + math.random(_entrypoint1.radius * -1, _entrypoint1.radius)
					_entrypoint1pos.z = _entrypoint1.point.z + math.random(_entrypoint1.radius * -1, _entrypoint1.radius)

					_landingpoint1 = trigger.misc.getZone('landingpoint')
					_landingpoint1pos = {}
					_landingpoint1pos.x = _landingpoint1.point.x + math.random(_landingpoint1.radius * -1, _landingpoint1.radius)
					_landingpoint1pos.z = _landingpoint1.point.z + math.random(_landingpoint1.radius * -1, _landingpoint1.radius)
					 
		local startpoint1 = {
							
									["alt"] = 6000,
                                    ["type"] = "Turning Point",
									["action"] = "Turning Point",
									["alt_type"] = "RADIO",
                                    ["formation_template"] = "",
                                    ["ETA"] = 0,
                                    ["y"] = _spawnairplanepos.z,
                                    ["x"] = _spawnairplanepos.x,
									["speed"] = 250,
                                    ["ETA_locked"] = false,
                                    ["task"] = 
                                            {
                                            ["id"] = "ComboTask",
                                                ["params"] = 
                                                {
                                                    ["tasks"] = 
                                                    {
                                                       
                                                    }, -- end of ["tasks"]
                                                }, -- end of ["params"]
                                            }, -- end of ["task"]
                                            ["speed_locked"] = true,
                            } -- end of [1]

					 

		local entrypoint1 = 
								{
								["alt"] = 3000,
                                ["type"] = "Turning Point",
								["action"] = "Turning Point",
								["alt_type"] = "RADIO",
                                ["formation_template"] = "",
                                ["ETA"] = 0,
                                ["y"] = _entrypoint1pos.z,
                                ["x"] = _entrypoint1pos.x,
								["speed"] = 250,
                                ["ETA_locked"] = false,
                                ["task"] = 
                                    {
                                    ["id"] = "ComboTask",
                                        ["params"] = 
                                            {
                                            ["tasks"] = 
                                                {
                                                       
                                                }, -- end of ["tasks"]
                                            }, -- end of ["params"]
                                    }, -- end of ["task"]
                                ["speed_locked"] = true,			
								}
					
		local landingpoint1 = 
								{
								["alt"] = 3000,
                                ["type"] = "LAND",
								["action"] = "Landing",
								["alt_type"] = "RADIO",
                                ["formation_template"] = "",
                                ["ETA"] = 0,
                                ["y"] = _landingpoint1pos.z,
                                ["x"] = _landingpoint1pos.x,
								["speed"] = 200,
                                ["ETA_locked"] = false,
                                ["task"] = 
                                    {
                                    ["id"] = "ComboTask",
                                        ["params"] = 
                                            {
                                            ["tasks"] = 
                                                {
                                                       
                                                }, -- end of ["tasks"]
                                            }, -- end of ["params"]
                                    }, -- end of ["task"]
                                ["speed_locked"] = true,			
								}
												
			local takeoffpoint = 
								{
								["alt"] = _alt,
                                ["type"] = "TakeOffParking",
                                ["action"] = "From Parking Area",
								["alt_type"] = "RADIO",
                                ["formation_template"] = "",
                                ["ETA"] = 0,
                                ["y"] = _landingpoint1pos.z,
                                ["x"] = _landingpoint1pos.x,
								["speed"] = 0,
                                ["ETA_locked"] = false,
                                ["task"] = 
                                    {
                                    ["id"] = "ComboTask",
                                        ["params"] = 
                                            {
                                            ["tasks"] = 
                                                {
                                                       
                                                }, -- end of ["tasks"]
                                            }, -- end of ["params"]
                                    }, -- end of ["task"]
                                ["speed_locked"] = true,			
								}

							
		if waypointType == 'arrival' 
		then
			waypoints[#waypoints+1] =  mist.fixedWing.buildWP(startpoint1, "Turning Point", 250, 3000, "RADIO")
			waypoints[#waypoints+1] =  mist.fixedWing.buildWP(entrypoint1, "Turning Point", 250, 3000, "RADIO")
			waypoints[#waypoints+1] =  mist.fixedWing.buildWP(landingpoint1, "LAND", 250, 3000, "RADIO") --string type, number speed, number altitude, string altitudeType
			else if waypointType == 'departure'
				then
				waypoints[#waypoints+1] =  mist.fixedWing.buildWP(takeoffpoint, "TakeOffParking", 250, 3000, "RADIO")
				waypoints[#waypoints+1] =  mist.fixedWing.buildWP(entrypoint1, "Turning Point", 250, 3000, "RADIO")
				waypoints[#waypoints+1] =  mist.fixedWing.buildWP(startpoint1, "Turning Point", 250, 3000, "RADIO")
				waypoints[#waypoints+1] =  mist.fixedWing.buildWP(entrypoint1, "Turning Point", 250, 3000, "RADIO")
				waypoints[#waypoints+1] =  mist.fixedWing.buildWP(landingpoint1, "LAND", 250, 3000, "RADIO") --string type, number speed, number altitude, string altitudeType
			end
		end
							
	return waypoints
end
	
	
flightplan = generateWaypoints(_spawnairplane, _entrypoint1, _landingpoint1, route)
local airtraffic1grp = Group.getByName(string.format(groupcounter)) 
mist.goRoute(airtraffic1grp, flightplan)
Doch zusammen bekomme ich die Funktionen nicht zum laufen. Vielleicht hast du da eine Idee?

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 11. Jun 2013, 21:34

So, hier mal ein Skript, welches zufälligen Luftverkehr durch mehrstrahlige Transporter, Aufklärer, Tanker, AWACS etc an 3 Flugplätzen generiert. In gewissen Abständen spawnt ein zufälliges Flugzeugmuster an einem der 3 Plätze, startet und fliegt in einem Bereich einen zufälligen Punkt an und landet an einem der 3 Flugplätze. Nach dem der Flieger seine Maschinen runtergefahren hat, wird er von der Karte entfernt. Auch wenn es zu einem Unfall auf der Bahn kommt, wird der Flieger entfernt, so daß Staus vermieden werden sollten.

Dafür muß allerdings im ME 4 Triggerzonen gesetzt werden und in dem Skript, die Namen der Flugplätze eingetragen werden.
3 Zonen müßen über den Flugplätzen liegen, dessen Namen in entsprechender Reihenfolge im Skript eingetragen wurden.

Zone 1. "airfield1",
Zone 2. "airfield2",
Zone 3. "airfield3" bestimmen die 3 Flugplätze wo der Verkehr erzeugt wird, während die
Zone 4. "airlanehub1" den Bereich bestimmt, welchen die Flieger anfliegen, bevor sie wieder auf einem Flugplatz landen.

Das gleiche Skript wollte ich noch in kompatibler Version für Helis schreiben und für Fighter (Jäger, Bomber), das aber ein anderes mal.
Achja, das ganze benötigt wieder "MIST2.0".


PS: Updated to v4, fixed some issues with other scripts, when random AI planes was destroyed.
Dateianhänge
RandAT3AF_v4.zip
(8.42 KiB) 472-mal heruntergeladen
Zuletzt geändert von JaBoG32_SNAFU am 25. Okt 2013, 10:11, insgesamt 1-mal geändert.

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 17. Jun 2013, 18:49

Hier eine neue Version, die an 3 Flugfelder zufälligen Verkehr erzeugt. Zufällige Flugzeuge und Helikopter spawnen, starten, fliegen zu einem zufälligen Punkt in einer Zone und landen an einem anderen Flugfeld wieder. Jäger und Bomber fliegen als 2er Formation, ansonsten sind alle Fluggeräte mit Skin und Waffenladung im Pool (ausnahme P51,Fw190, F-117). Nach dem der Flieger seine Maschinen runtergefahren hat, wird er von der Karte entfernt. Auch wenn es zu einem Unfall auf der Bahn kommt, wird der Flieger entfernt, so daß Staus vermieden werden sollten. Die vertretenen Nationen bestehen aus Russland, Georgrien, USA, UK, France, Germany und Niederland.

Um Komplikation mit Flugabwehr zu vermeiden, sollten im Skript die folgenden Parameter in Zeile 26-28 editiert werden.

Code: Alles auswählen

randomAirplane = math.random(1,18) -- random for airplanettype; Russian AC 10-18 , for russion only set (10,18), or otherwise for other nations
randomHeli = math.random(1,18) --Russian AC 13-18, for russion only set (13,18), or otherwise for other nations
randomFighter = math.random(1,36) --Russian AC 18-36, for russion only set (18,36), or otherwise for other nations
In Zeile 10 kann die Spawnintervallzeit editiert werden:

Code: Alles auswählen

intervall = math.random(300,900) --(x,y) minimum x seconds, max. y seconds
Dafür muß allerdings im ME 4 Triggerzonen gesetzt werden und in dem Skript in Zeilen 12-14, die Namen der Flugplätze entsprechen den Zonen 1-3 eingetragen werden.
3 Zonen müßen über den Flugplätzen liegen, dessen Namen in entsprechender Reihenfolge im Skript eingetragen wurden.

Zone 1. "airfield1",
Zone 2. "airfield2",
Zone 3. "airfield3" bestimmen die 3 Flugplätze wo der Verkehr erzeugt wird, während die
Zone 4. "airlanehub1" den Bereich bestimmt, welchen die Flieger anfliegen, bevor sie wieder auf einem Flugplatz landen.

Achja, das ganze benötigt wieder "MIST2.0".
Dateianhänge
RandAT3AF_v1.zip
(8.38 KiB) 469-mal heruntergeladen

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 25. Jun 2013, 22:09

Dieses kleine Skript zeigt den Offset einer BDU-50HD/LD zum de Zentrum der Triggerzone "targetzone" an. Man kann also einfach eine Triggerzone mit diesem Namen über ein Zielobjekt setzen und an diesem mit der BDU-50 Bombendeliverys üben. Die Entfernung des Bombeneinschlag zum Ziel wird nach Einschlag dieser für 15 sek angezeigt.

Ebenso wird der Offset relativ zum Anflug angezeigt, also wieviel zu kurz/land, wie weit zu rechts/links.

Das Ziel wird nach Initialisierung des Skripts alle 5 Sekunden durch grüne Flares markiert.
Dateianhänge
BDUIndicator.7z
(985 Bytes) 470-mal heruntergeladen
Zuletzt geändert von JaBoG32_SNAFU am 26. Jun 2013, 16:39, insgesamt 2-mal geändert.

Benutzeravatar
JaBoG32_Butcher
Intermediate Member
Beiträge: 459
Registriert: 25. Aug 2007, 13:58
Wohnort: Millingen

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_Butcher » 26. Jun 2013, 03:11

Sowas hat Herby in seinem Standard-Template schon drin!
Ist bei Ihm aber, soviel ich weis, verbunden mit dem Ziel und nicht als Zone.
Zuletzt geändert von JaBoG32_Butcher am 27. Jun 2013, 06:58, insgesamt 1-mal geändert.
Bild
Die im Dunkeln sieht man nicht.
(Schlußstrophe aus der drei Groschen Oper von Berthold Brecht)

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 26. Jun 2013, 07:23

Ok, wußte ich nicht. Ich nutze SLMOD nicht und einfach Skripte kann man in jeder Mission einfacher einsetzen.
Habe auch eine Version, die abhängig von der Zeit jeweils eine andere Einheit als Ziel markiert, also auch Zonen unabhängig, ich finde Zonen nur so schön praktisch. ;)

PS: Jetzt mit relativer Offset-Anzeige, im obigen Post.

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 27. Jun 2013, 20:55

Hier jetzt ein weiteres Skript zum Bomben und WP Üben. Nicht an einer Zone orientierend, sondern an abwechselnden Einheiten, mit relativer Genauigkeitsanzeige.

Vorraussetzung ist Mist2.0 bei der Initialisierung, die Beladung mit BDU-50LD/HD,Hydra70WP und das die Ziele den Unitnamen "target1", "target2",... haben.

Das 1. Übungsziel wird mit grünen Flares markiert, nach dem ersten Abwurf, wechselt es zum nächsten Ziel "target2" und diese wird mit grünen Flares angezeigt. Die Genauigkeit des Abwurfs wird angzeigt durch die absolute Entfernung des Einschlags vom Ziel, wie weit es kurz/zu weit, wie weit es rechts/links war, relativ zum abwerfenden Flieger.

Allerdings sollte man immer nur eine Bombe/Rakete abwerfen, sonst kommt es durcheinander mit den Anzeigen.
Dateianhänge
BDUIndicatorMultipleTargets.7z
(1.08 KiB) 447-mal heruntergeladen

Benutzeravatar
JaBoG32_SNAFU
Semi-Professional
Beiträge: 2759
Registriert: 4. Mär 2013, 08:50

Re: M.I.S.T. - Skriptschnipsel

Beitrag von JaBoG32_SNAFU » 2. Aug 2013, 19:33

Uff... gerade noch vor dem Urlaub geschafft... 8)
This my latest attempt to script the possibility for the player to call in AI strikers and give them a target.

This script tries to simulate the AFAC role with player as AFAC and AI as strikepackage. The player uses the F-10 menu to define an IP "Tango" and call in a 2 ship of either F/A-18C with MK82 or F-16C with GBU10.
The AI authenticates via textmessages only the AFAC player can read and establishes communication with the player. So I tried simulate the whole procedure for a 9-line brief by the player for the AI.

At the moment the AI reaches the IP Tango, the player has to mark the target for the AI with WilliePete rockets and briefs the AI a 9line via text messages. The AI then runs in and either bombs the closest unit found at the mark in 300m distance or just drops on the mark if no unit was found. Be adviced the F-16s can only bomb units and will not drop if the marker rocket was not placed 300m close to unit. Only the F/A-18C can bomb on the mark with dumb bombs (therefore can be used against statics).

The F/A-18s will only do one pass, the F-16C shall do 2 passes.

It works best if the player defines the IP Tango about 10nm away from his intended target area. Therefore you have to call in the striker earlier. The will orbit at the IP until the player marks a target.

You can also ask for the current position of the striker via the F-10 menu and abort the attack if necessay, also via the F-10 menu.

What you need to do with you mission to get the script working:
1. Initiate MIST 2.0 on the trigger page in the bottom mask.
2. Initiate the script file with a tigger ONCE->TIME MORE(2) ->LOAD SCRIPT FILE(....)
3.Put a trigger zone on the map in the ME, called "strikerspawnzone". This is the area were the strikepackages will randomly spawn in the air (to simulate their holding area)
4.The AFAC units need the "WilliePete" Rockets (WP), without these rockets you cannot assign targets
5.The AFAC units need to be named "Misty11", "Misty21", "Misty31", "Misty41, "Misty51", Misty61", "Nails11", "Nails21", "Nails31" or "Nails41" as you can see when you open the script file. You can also edit the script file accordingly.

NOTE:
- I didn´t test in MP but the list of possible AFAC units has here 10 slots as you see when you open the script.
-This script only works for blue AFAC with WP.
-This is the first release version, please report bugs, hints, corrections, etc.
-Attached is a Miz.file as example (this file also contains an example of the "random airftraffic script" only because some asked for an example and so I put it in also)
Dateianhänge
Mist2_Uh1_A10C_AFAC_Script_r2.rar
(69.21 KiB) 463-mal heruntergeladen
AFAC_Randomairtraffic_script_example.rar
(60.71 KiB) 481-mal heruntergeladen

Antworten