Jump to content

Recommended Posts

How could I make this work?

_AI_Leader = New_AI_Group createUnit [JalkavakiJohtajat select floor (random count JalkavakiJohtajat), _AI_Spawn_Pos, [], 0, "NONE"];
if (_AI_Leader == "I_officer_F") then {_AI_Leader setRank "LIEUTENANT"; [_AI_Leader, "LIEUTENANT"] call BIS_fnc_setUnitInsignia;};

else they are.
_AI_Leader setRank "SERGEANT"; 
[_AI_Leader, "SERGEANT"] call BIS_fnc_setUnitInsignia;

Share this post


Link to post
Share on other sites

i figured out what was the problem
if (typeOf _AI_Leader == "I_officer_F") then {_AI_Leader setRank "LIEUTENANT"; [_AI_Leader, "LIEUTENANT"] call BIS_fnc_setUnitInsignia;} else {_AI_Leader setRank "SERGEANT"; [_AI_Leader, "SERGEANT"] call BIS_fnc_setUnitInsignia;};

   

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×