Hello. I'm creating a mission where the player has to get a Weapon, Helmet and chestrig from some crates.
I'm just starting so I'm only checking for primary weapons.
This is the code I have so far and it's not working.
If I'm getting this right, when wep = 2, then tsk1complete = TRUE and my task will be completed. Is that so? Thanks!
Primawep = primaryWeapon player;
wep = 1; //Will change when the character has a weapon
hel = 1;
rig = 1;
while {wep < 1} do {
if (Primawep == "arifle_Mk20_F") then {
wep = wep + 1; // Only the weapons on the list are available for the player
};
if (Primawep == "LMG_Mk200_F") then {
wep = wep + 1;
};
if (Primawep == "arifle_Mk20C_F") then {
wep = wep + 1;
};
if (Primawep == "arifle_Mk20_GL_F") then {
wep = wep + 1;
};
if (Primawep == "hgun_PDW2000_F") then {
wep = wep + 1;
};
if (Primawep == "srifle_EBR_F") then {
wep = wep + 1;
};
};
if (wep > 1) then {
tsk1complete = TRUE;
};
This bit of code was working when I was checking only for a specific gun.
_Primawep = primaryWeapon player;
if (_Primawep == "LMG_Mk200_F") then {
tsk1complete = TRUE;
};
And of course, If you have a simpler way of doing this, let me know!