Hello people. I'm looking for a efficient way to detect if a player has a special type of weapon in his inventory, as primary or secondary weapon.
if (isDedicated) then {
sleep 0.001;
_launcher = ["rhs_weap_M136_hp","rhs_weap_M136_hedp","rhs_weap_M136"];
{
if (SecondaryWeapon player _launcher ) then
{
hint "Player sec weapon found";
};
}
};
In this case, I'm looking for detection of one of three type of RHS launchers, if a player has one of it in his inventory.
Am I missing something here ?