Task Framework Compositions

From Arma Projects
Jump to: navigation, search

For every task, included in the object spawner, is the ability to load 3DEN object compositions into the mission dynamically. These will be automatically cleaned up during the task clean up phase. There is no limit per task on how many compositions can be spawned and the parameters support dynamic placement around a central reference position. If no position is given, the 3DEN composition recorded position is used as this allows precise replication of compositions where they were recorded.

The 3DEN compositions are stored in the core framework under CfgMissionCompositions

class My_Task_1 {
	class Compositions {
		class 3DEN_composition_1 { <parameters> };
		class 3DEN_composition_2 { <parameters> };
		class 3DEN_...
	};
};
Configuration Parameters
1 - typeIDs <array>
Randomly select from array a 3DEN composition ID from CfgMissionCompositions to be created
typeIDs[] = {"3DENcompID"};
2 - (optional) position <array/string> if missing position, 3DEN composition recorded position is used.
<array> : Override position with a fixed [x,y,z] ATL
position[] = {231,5321,12};
<string> : "position" or "positionOffset" to get the dynamic task position
position = "positionOffset";
3 - (optional) distance <array/number>
<array> : set spawn position within a [min,max] distance from center position
distance[] = {10,50};
<number> : distance in metres from center
distance = 10;
4 - (optional) direction <array/number>
<array> : set spawn position within a [min,max] angle from center position
direction[] = {-350,25};
<number> : angle in degrees from north
direction= 90;
5 - (optional) angle <array/number>
<array> : set the angle of the composition randomly between [min,max] angle
angle[] = {-327,80};
<number> : angle of composition in degrees from north
angle = 180;
6 - (optional) faction <string>
CfgMissionSides Faction ID if units are to be spawned
faction = "Blu_F";
7 - (optional) groupTypes <array>
Array of group types to be randomly selected and spawned when composition is created
groupTypes[] = {"Squad8","Squad4"};
8 - (optional) downloadIntel <decimal> 0 to 1
Enable composition objects as intel objects for download or pick-up for this task. if number is decimal then it is treated as a possibility
downloadIntel = 0.8; // (80% chance)
  • Example of a composition
class My_Task_1 {
	class Compositions {
		class 3DEN_composition_1 {
			typeIDs[] = {"3DEN_1","3DEN_2"};
			position = "positionOffset";
			distance[] = {10,50};
			direction[] = {-350,25};
			angle[] = {-327,80};
			faction = "Blu_F";
			groupTypes[] = {"Squad8","Squad4"};
			downloadIntel = 0.8;
		};
	};
};