Add combat npc aircrafts to maps
Moderator: Forum moderators
-
- Newbie
- Posts: 2
- Joined: Wed Mar 12, 2025 7:21 pm
- Favorite Aircraft: F-15
- OS: windows 10
- Has thanked: 1 time
Add combat npc aircrafts to maps
- waspe414
- Staff
- Posts: 1623
- Joined: Thu Feb 10, 2011 9:35 pm
- Favorite Aircraft: Kiowa, Mitten, Hornet
- Location: Canada
- Has thanked: 161 times
- Been thanked: 521 times
Re: Add combat npc aircrafts to maps
This is a mission file (or replay file, missions are just replays without replay data). You can link it to a map by editing the .lst file for the map you're using. For example, if flying on stock Tohoku, open scenery.lst in Notepad and add the filepath of the .yfs to the end of the TOHOKU line. Some of the stock maps link .yfs files for you to reference.
You can edit the specifics of the aircraft by opening the .yfs in Notepad. For each aircraft, the file defines the following:
What aircraft it is
Where it starts
Its IFF
Its unique aircraft ID
It's then updated by AIRPCMND to load specific weapons or fuel and change its position.
INTENTIO sets the aircraft's intentions. You can tweak them to your liking, but the default dogfight values should be fine. If you want to know what any of them are, feel free to ask about them
Here are all the variables if you need them:
Code: Select all
AIRPLANE F-16C_FIGHTINGFALCON TRUE SUBST:F-18C_HORNET
STARTPOS NA MISAWA_RW10
IDENTIFY 0
IDANDTAG 5 ""
AIRPCMND UNLOADWP
AIRPCMND LOADWEPN IFLR 20
AIRPCMND LOADWEPN AIM120 2
AIRPCMND LOADWEPN AIM9 6
AIRPCMND LOADWEPN AGM65 6
AIRPCMND LOADWEPN FUEL 1000
AIRPCMND LOADWEPN AIM9X 2
AIRPCMND LOADWEPN B500HD 2
AIRPCMND LOADWEPN FUEL 800
AIRPCMND LOADWEPN FLR 20
AIRPCMND INITFUEL 75%
AIRPCMND POSITION -68031.14m 32.11m 21996.24m
AIRPCMND ATTITUDE -89.93deg 0.00deg -0.00deg
AIRPCMND CTLLDGEA TRUE
AIRPCMND INITSPED 0.000000m/s
INTENTIO
DOGFIGHT G11.00 B20.00 F6
CLOSEINMAXSPEED FALSE
TARGETFLYINGONLY TRUE
COMBATTHRESHOLD 31484.0m
GIVEUPDS 20000.0m
MINIALTI 100
ENDINTEN
And again, I am happy to answer any questions



I stole your turnip. Now you must come and defend your honour. ~ Hank Green
-
- Newbie
- Posts: 2
- Joined: Wed Mar 12, 2025 7:21 pm
- Favorite Aircraft: F-15
- OS: windows 10
- Has thanked: 1 time
Re: Add combat npc aircrafts to maps
Really thanks
Who is online
Users browsing this forum: No registered users and 1 guest