Jump to content
Sign in to follow this  
yoannis1995

IR grenade attached to units

Recommended Posts

Hi,

I'm trying to attach IR grenades to units with this code:

{_ir = "B_IR_Grenade" createVehicle [0,0,0]; _ir attachTo [_x, [0,-0.03,0.07], "LeftShoulder"];} forEach units group player

But it doesn't work even though it works with the exact same code and chemlights instead of IR grenades...

Any idea how to make it work ?!

Share this post


Link to post
Share on other sites

Hello Yoannis1955,

"B_IR_Grenade" does not exist in "CfgAmmo" or "CfgVehicles".

{_ir = "B_IRStrobe" createVehicle [0,0,0]; _ir attachTo [_x, [0,-0.03,0.07], "LeftShoulder"];} forEach units group player

Share this post


Link to post
Share on other sites
Hi,

I'm trying to attach IR grenades to units with this code:

{_ir = "B_IR_Grenade" createVehicle [0,0,0]; _ir attachTo [_x, [0,-0.03,0.07], "LeftShoulder"];} forEach units group player

But it doesn't work even though it works with the exact same code and chemlights instead of IR grenades...

Any idea how to make it work ?!

As TittErs says, it's the wrong class, itshould be "B_IRStrobe". This works.

{_ir =  "B_IRStrobe" createVehicle (position player); _ir attachTo [_x, [0,-0.03,0.07], "LeftShoulder"];} forEach units group player;

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
Sign in to follow this  

×