Skip to content

Creating Compositions

DomT602 edited this page Jan 7, 2025 · 3 revisions

Making your own compositions

If you would like to make your own compositions (such as FOBs, supply depots, AA sites etc) then follow the instructions below:

  1. Open the Eden editor and choose the virtual reality map
  2. Build your composition (avoid making it too big or too many objects which may cause lag/low FPS)
  3. Put a playable unit at the compositions centre
  4. Run the following code:
private _centre = getPosATL player;

diag_log text "Export:";
diag_log text "{";
{
	(getPosATL _x) params ["_xPos","_yPos","_zPos"];
	diag_log text format [
		"	{""%1"",{%2,%3,%4},%5},",
		typeOf _x,
		(_xPos - (_centre select 0)) toFixed 2,
		(_yPos - (_centre select 1)) toFixed 2,
		_zPos toFixed 2,
		(getDir _x) toFixed 2
	];
} forEach ((nearestObjects [_centre, ["All"], 50]) - [player]);
diag_log text "};";

diag_log text "Export Finished";
  1. Enter your RPT log and find the output
  2. Take the output and remove the RPT timestamps and the final comma
  3. Add your composition to the desired array in Config_Compositions

Special Objects

  • For Opfor AA & Artillery Sites: PortableHelipadLight_01_yellow_F is the class used to designate where vehicles are placed - so any vehicle classname should be replaced with it
  • For Opfor FOBs: There are two arrays, the first array is the objects, and the second array is the objectives that need to be destroyed so make sure to split them
  • For Opfor Supply Depots: Similarily to the FOBs there is an object and objective array. The depot needs space to have a HEMTT sized truck stored - these will go into the objectives and then rename the class to one of the following depending on what type of truck you want it to be: "opforSupplyTruck", "opforFuelTruck", "opforAmmoTruck"
  • For Radio Towers: The first element of the radio tower array is the approximate distance in metres the composition takes up which is used to decide which tower to spawn. The towers should be ordered from biggest to smallest
Clone this wiki locally