View Single Post
  #27  
Old 07-18-2012, 11:34 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Quote:
Originally Posted by SG1_Lud View Post
Where can I know the definition of the object type ISectionFile, I mean, all the fields that contains the different data fos setting up the new actor?
Make a little Mission, then open the mis file, there are all informations you need:

for example in mis file:
[AirGroups]
BoB_LW_KG3_I.01
[BoB_LW_KG3_I.01]
Flight0 1
Class Aircraft.He-111H-2
Formation LINEABREAST
CallSign 26
Fuel 100
Weapons 1
SetOnPark 1
Idle 1
Skill 0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3
[BoB_LW_KG3_I.01_Way]
TAKEOFF 40064.00 20458.26 0 0

internal ISectionFile CreateNewPlaneAtAirfield()
{
ISectionFile f = GamePlay.gpCreateSectionFile();

f.add("AirGroups", "BoB_LW_KG3_I.01", "");
f.add("BoB_LW_KG3_I.01", "Flight0", "1");
f.add("BoB_LW_KG3_I.01", "Class", "Aircraft.He-111H-2");
f.add("BoB_LW_KG3_I.01", "Formation", "LINEABREAST");
f.add("BoB_LW_KG3_I.01", "CallSign", "30");
f.add("BoB_LW_KG3_I.01", "Fuel", "100");
f.add("BoB_LW_KG3_I.01", "Weapons", "1");
f.add("BoB_LW_KG3_I.01", "SetOnPark", "1");
f.add("BoB_LW_KG3_I.01", "Idle", "1");
f.add("BoB_LW_KG3_I.01", "Skill", "0.3 0.3 0.3 0.3 0.3 0.3 0.3 0.3");
f.add("BoB_LW_KG3_I.01_Way", "TAKEOFF", "298417.47 127327.45 0 0");

return f;
}

Quote:
My second question, the list of groups like BoB_LW_StG2_II.03?
Don't know if there is a list of all Airgroups available, simplest solution create a mission with all Airgroups you need, then open the mis file.

Quote:
and finally, the list of callsigns associated to their codes (in the case above, was 30)?
Callsigns are available from 0-35 (german, italian beginning with Adler, english with Acorn) but don't think there is a complete list present, never needed one

Last edited by FG28_Kodiak; 07-18-2012 at 11:38 AM.
Reply With Quote