Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
cruoriss

classParams changing unit

Recommended Posts

Hi , for my insurgency mission i'd like to add an option to change unit side .

So that player spawn for example with an AAF rifleman instead of a NATO one .

Also a params for enemy unit but since i'm using eos it should be easier .

Searched a bit but couldn't find excactly what is needed .

Thanks

Edit : Here's what i tried so far but isn't working

On the init.sqf :

//Mission parameters
skiptime (paramsArray select 1);
_ally = (paramsArray select 2);
if (_ally = 1) then {null=[] execVM "test.sqf"};

On the description.ext :

class Params
{
class MaxAI
{ // 0
title = "Maximum number of AIs that a squad leader can recruit at one time?";
values[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
texts[] = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"};
default = 16;
};
class DayTime
{ // 1
title = "Time Of Day";
values[] = {-6, 0, 8, 13};
texts[] = {"Morning", "Clear day", "Sundown", "Night"};
default = 0;
};
class PSide
{ // 2
title = "Choose your team";
values[] = {0,1,2};
texts[] = {"BLUFOR","OPFOR","INDEPENDANT"};
default = 0;
};

Edited by vinceXD

Share this post


Link to post
Share on other sites

Bump , still haven't found .

Edit : there was a missing = on if (_ally = 1 ) , i'll keep going

2ndEdit : Found workaround for player side and thanks to eos enemy side is really easy to change with classparams

Edited by vinceXD

Share this post


Link to post
Share on other sites
Sign in to follow this  

×