Jump to content

Recommended Posts

Posted

Had a look though the forums but couldn't find specifically what I was after so apologies if this has been asked before.

 

In one of the standalone F15 missions, you can use the radio commands to spawn pairs of enemy fighters using the option labelled other. I've since installed FC3 and can't find that mission via the mission editor to look and see how it's done.

 

Any ideas?

 

 

What I'm trying to do is create a 2 player (client) MP map for me and a friend just for some private one to one training. I want to be able to fly with him to instruct him and then call up enemy fighters as and when required.

 

Also, a second question...

 

Is it possible to respawn the group of enemy fighters once they're dead?

 

 

Many thanks! :thumbup:

My Hangar: P-51D Mustang - KA-50 Blackshark - A-10C Warthog - F-86F Sabre - FC3 - Combined Arms - UH-1H

My Flying Adventures: www.dcs-pilot.com :pilotfly:

Posted (edited)

Attached you find a script, which generates 1 or 2 F-15C or Su-27 in a triggerzone you have to place in the ME, by using the F10 Radio command option.

 

In top of the script file you find a description, how to use the script and how to modify the player unit or the script and the triggerzone.

 

Note that you have to initialize MIST before.

 

--[[
--script to activate AI Planes for AA Training by snafu
--requires MIST!

How to:
-0 Download MIST by Grimes/Speed on (http://forums.eagle.ru/showpost.php?p=1622305&postcount=3) and the MIST Manual
-1 Open Mission Editor (ME) and choose coalitions
-2 Open "Trigger Page" by pressing icon on the left side row of the ME
-3 Choose a lua file which shall be initialized at the start of the mission by opening file-menu in bottom line on the "Trigger Page" and initialize MIST by choosing the latest MIST*.LUA, you just downloaded
-4 Create a new Trigger by pressing: ONCE -> TIME IS MORE (5) -> MESSAGE TO ALL ("Test Script loaded", 10 sec) + DO SCRIPT FILE ([url="http://forums.eagle.ru/attachment.php?attachmentid=107209&d=1415804445"]AIgeneration_v5.lua[/url])
-5 insert a plane and name the unit and group as listed in "fighterunitnametable[1]..[8]", here "test1" (or "whatever")
-6 modify the script and insert in  "fighterunitnametable[1]..[8]" the unit names you have used in step 5
-7 place triggerzone in which you want the AI to spawn in and name it 'AAtrainingarea'
-8 save mission and press green icon for testing


--]]

 

PS: I just wrote the script for our squad training map template and did not do any in depth tests of the AI, I noticed so far, that they don´t attack in some cases and just prefer to RTB, but I figured that this was due to the distance between me and them and their skill level being random.

AIgeneration_v5.lua

Edited by SNAFU

[sIGPIC][/sIGPIC]

 

Unsere Facebook-Seite

Posted

Hi,

 

This isn't working for me, I think I'm doing something wrong.

 

So far I've got two F-15Cs on the map, both set to client (one for me, one for my friend).

 

I've got MIST and the AIregeneration script to load and I've got my trigger zone set up as per the instructions and called it AAtrainingarea.

 

What I don't understand is where it says insert a plane and name the unit AND the group as per the tables in the AIregeneration script (test1, test2 etc.).

I think I get what it's asking but naming the unit and the group? I don't understand how to name the Unit???

 

I've tried adding enemy aircraft and naming their group names as test1, test2 etc respectively but all I end up with is a bunch of enemy aircraft flying round the trigger zone as soon as I get into the mission and no F10 option...

 

 

:pilotfly:

My Hangar: P-51D Mustang - KA-50 Blackshark - A-10C Warthog - F-86F Sabre - FC3 - Combined Arms - UH-1H

My Flying Adventures: www.dcs-pilot.com :pilotfly:

Posted (edited)

Thanks guys.

 

I got AutoMan working and also figured out why the F10 options weren't showing earlier... Had radio assists disabled in the ME.

 

3 groups of 2 aircraft each now spawning on request :D

 

Many many thanks to all

Edited by Tumbleweed

My Hangar: P-51D Mustang - KA-50 Blackshark - A-10C Warthog - F-86F Sabre - FC3 - Combined Arms - UH-1H

My Flying Adventures: www.dcs-pilot.com :pilotfly:

Posted
Hi,

 

This isn't working for me, I think I'm doing something wrong.

 

So far I've got two F-15Cs on the map, both set to client (one for me, one for my friend).

 

I've got MIST and the AIregeneration script to load and I've got my trigger zone set up as per the instructions and called it AAtrainingarea.

 

What I don't understand is where it says insert a plane and name the unit AND the group as per the tables in the AIregeneration script (test1, test2 etc.).

I think I get what it's asking but naming the unit and the group? I don't understand how to name the Unit???

 

I've tried adding enemy aircraft and naming their group names as test1, test2 etc respectively but all I end up with is a bunch of enemy aircraft flying round the trigger zone as soon as I get into the mission and no F10 option...

 

 

In the script you see the lines 21 to 30 <fighterunitnametable[1] = { unitname = 'test1'}>

 

There you have to overwrite the 'test1' with the unitnames of the clientplanes, which shall get the F-10 options. This script shall check all the planes in the mission and if the unitname of the plane is listed in the table <fighterunitnametable[1...]>, then it gives these the units the radio option with the functions. In your case, if the client units have the name 'test1' and 'test2' it should actually work.

[sIGPIC][/sIGPIC]

 

Unsere Facebook-Seite

  • Recently Browsing   0 members

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