@ Spartan0536
Don't let yourself get confused by bigshotking. What he suggested is not correct.
---
You either need to edit the unit classes in the mission.sqm.
Code:
class Item0
{
position[]={@_Insertion_X,@_Insertion_Y,@_Insertion_Z - 1000};
id=0;
side="WEST";
vehicle="FR_TL";//<-----------------
player="PLAYER COMMANDER";
leader=1;
rank="LIEUTENANT";
skill=1.000000;
synchronizations[]={6,7};
init=@"format [""BIS_patrolLength = %1"", _PatrolLength]";
};
Or you define different units to select from in the params.desc. However that one is quite tricky.
First you need to define them like this:
Code:
class Units
{
class players_west//for SP: class PlayerUnits
{
name = "WEST";
group = 0;
default = units_rifleman;
class units_rifleman
{
name = $STR_DN_RIFLEMAN;
file = units_west_rifleman.unit;
};
class units_camo
{
name = $STR_DN_SPOTTER;
file = units_west_camo.unit;
};
class units_sf
{
name = $STR_DN_FR_DR1;
file = units_west_SF.unit;
};
};
units_west_rifleman.unit looks like this for example:
Code:
class Item0
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=0;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAYER COMMANDER";
leader=1;
skill=0.600000;
text="ap_w_0";
};
class Item1
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=1;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_1";
};
class Item2
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=2;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_2";
};
class Item3
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=3;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_3";
};
class Item4
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=4;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_4";
};
class Item5
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=5;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_5";
};
class Item6
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=6;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_6";
};
class Item7
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=7;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_7";
};
class Item8
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=8;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_8";
};
class Item9
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=9;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_9";
};
class Item10
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=10;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_10";
};
class Item11
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=11;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_11";
};
class Item12
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=12;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_12";
};
class Item13
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=13;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_13";
};
class Item14
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=14;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_14";
};
class Item15
{
position[]=
{
@"_WIZVAR_west_X",
@"_WIZVAR_west_Y",
@"_WIZVAR_west_Z"
};
placement=10;
special="NONE";
id=15;
side="GUER";
vehicle="USMC_Soldier_SL";
player="PLAY CDG";
leader=1;
skill=0.600000;
text="ap_w_15";
};
However it means you need to edit the mission.sqm too, to add the parameters into the given unit.
---
Ontop of that you need define it as new SP template in a config.
---
Overall doable - but why not use a replacement config instead to use the infantry you want?
Or go for the direct mission.sqm edit.