Server guide
Aircraft at traders
RotorCraft helicopters work with any trader mod. A trader helicopter needs configuring: list its start parts as attachments so it arrives complete. This page lists the classnames and parts, the ready-made Expansion Market files, and where trader helicopters appear.
Configuring a complete helicopter
For a complete helicopter, attach these items in your trader entry. Classnames are not case sensitive.
RotorCraft_Mosquito
CarBattery, SparkPlug, SparkPlug (two), RotorCraft_DriveBelt
RotorCraft_MH6, RotorCraft_AH6
TruckBattery, GlowPlug
RotorCraft_Gazelle, RotorCraft_GazelleCannon
TruckBattery, GlowPlug
RotorCraft_BlackHawk, RotorCraft_BlackHawkArmed
TruckBattery, GlowPlug
RotorCraft_AB212, RotorCraft_AB212Armed
TruckBattery, GlowPlug
RotorCraft_Chinook
TruckBattery, GlowPlug
Rotor blades come fitted, so don't add them. The blade sets in the parts list are spares for repairing a destroyed rotor: RotorCraft_RotorBlades_Mosquito, _MH6 (MH-6 and AH-6), _Gazelle (both Gazelles), _BlackHawk (both Black Hawks), _AB212 (both AB 212s) and _Chinook.
Starting equipment and fuel
Attached parts replace the mod's random starting equipment. A helicopter listed by classname alone gets the same starting equipment as a loot spawn:
| Battery | 30% chance (freshBatteryChance) |
| Glow plug, or both Mosquito spark plugs | 30% chance (freshPlugsChance) |
| Fuel | 0 to 15% (freshFuelMin, freshFuelMax) |
Fuel comes from your trader mod (some fill the tank) or from these settings: offer fuel at the trader, or raise freshFuelMin and freshFuelMax in Aircraft settings.
freshBatteryChance and freshPlugsChance to 1 in RotorCraft_Aircraft.json. This also applies to helicopters placed by the mod's own spawns.Expansion Market: ready-made files
The mod's release/trader-files/ folder has files that already fit the parts above:
ExpansionMod/Market/RotorCraft_Helicopters.json: every flyable aircraft.ExpansionMod/Market/RotorCraft_Parts.json: blade sets, Mosquito belt, door-gun and 20 mm ammo, spray cans.ExpansionMod/Traders/RotorCraft_Aircraft.json: an optional trader with both categories.
- Stop the server.
- Copy the two Market files into
<server profile>/ExpansionMod/Market/. - Either add
"RotorCraft_Helicopters"and"RotorCraft_Parts"to the"Categories"list of an existing trader (for exampleExpansionMod/Traders/Aircraft.json), or copyTraders/RotorCraft_Aircraft.jsoninto<server profile>/ExpansionMod/Traders/and point a trader NPC at"RotorCraft_Aircraft"in your map's trader file. - Start the server.
Prices and stock are a starting point. The currency is Expansion's default, expansionbanknotehryvnia; change "Currencies" in the trader file if you use another.
Dr.Jones Trader
Dr.Jones fits a helicopter's parts from TraderVehicleParts.txt in your Trader profile folder. Add one entry per helicopter above the <OpenFile> line near the end of that file; Dr.Jones stops reading at that line, so entries below it are ignored. For example:
<VehicleParts> RotorCraft_MH6
TruckBattery
GlowPlug
<VehicleParts> RotorCraft_Mosquito
CarBattery
SparkPlug
SparkPlug
RotorCraft_DriveBelt
Use the part lists above for the other classnames. List the helicopters in TraderConfig.txt with quantity VNK (or V for a trader key), as for cars. Helicopters arrive with the mod's starting fuel (see "Starting equipment and fuel" above), so offer fuel at the trader or raise freshFuelMin and freshFuelMax.
- Dr.Jones places the helicopter exactly at the trader's
<VehicleSpawn>point inTraderObjects.txt. Set that point's height (the middle number) about 1.5 m above the ground, or 2 m for a Chinook, so it settles onto its gear. - Give the spawn point plenty of clear room for the rotor.
Other trader mods
Add the parts from the list above as attachments in the helicopter's vehicle entry, the same way you'd give a car its battery and spark plug. Where a mod has no attachment option, use the freshBatteryChance / freshPlugsChance tip above.
Where trader helicopters spawn (Expansion)
RotorCraft helicopters are built on DayZ's car class, so Expansion treats them as land vehicles. It spawns them at the LandSpawnPositions in expansion/settings/MarketSettings.json, not the AirSpawnPositions.
- Expansion uses the closest free land spawn point within
MaxVehicleDistanceToTrader(120 m by default) of the trader. - To have helicopters appear on the helipad, add a land spawn point there, within that distance of your aircraft trader.
- Give it plenty of clear room: Expansion skips a point if something blocks the aircraft, and these rotors are wide.
- Keep at least one free point in range: Expansion needs one to place the helicopter.
Other trader mods have their own vehicle spawn settings; use the ones for cars.
Something missing or wrong? Ask in the Discord.