Jump to content
Jakob Kraus

Making my Helicopter flare

Recommended Posts

Hello there. I was creating a mission when there suddenly was a problem.

 

vehicle player fire "168Rnd_CMFlare_Chaff_Magazine";

player fire "168Rnd_CMFlare_Chaff_Magazine";

vehicle player fire "CMFlareLauncher";

player fire "CMFlareLauncher";

vehicle player forceWeaponFire ["CMFlareLauncher", "CMFlareLauncher"];

player forceWeaponFire ["CMFlareLauncher", "CMFlareLauncher"];

_weapon = "CMFlareLauncher";
_mode = (getArray (configFile >> "cfgweapons" >> _weapon >> "modes")) select 0;
if (_mode == "this") then {_mode = _weapon;};
vehicle player forceWeaponFire [_weapon, _mode];

_weapon = "CMFlareLauncher";
_mode = (getArray (configFile >> "cfgweapons" >> _weapon >> "modes")) select 0;
if (_mode == "this") then {_mode = _weapon;};
player forceWeaponFire [_weapon, _mode];

_weapon = "168Rnd_CMFlare_Chaff_Magazine";
_mode = (getArray (configFile >> "cfgweapons" >> _weapon >> "modes")) select 0;
if (_mode == "this") then {_mode = _weapon;};
vehicle player forceWeaponFire [_weapon, _mode];

_weapon = "168Rnd_CMFlare_Chaff_Magazine";
_mode = (getArray (configFile >> "cfgweapons" >> _weapon >> "modes")) select 0;
if (_mode == "this") then {_mode = _weapon;};
player forceWeaponFire [_weapon, _mode];

 

neither of these version's worked and it really is necessary for the mission.

 

I searched trough almost the whole internet without finding anything helpful. :/

 

I hope that someone can help me ^^

Share this post


Link to post
Share on other sites

Thank you very much! Well, i have looked at this before but I thought that the fire and forceweaponfire were more promising. Ahm. But one question. Is there a way to find out the weapon number other then testing because then i would have to spend A LOT of time testing which number is which weapon. I know that it can be done because I saw a way to find out the number somewhere online but i forgot where it was and i spent the last 20 Minutes searching for it.

 

_heli action ["useWeapon", _heli, driver _heli, 15];

For example the 15 at the end

 

I hope that someone can help me. Again ^^

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

×