Jump to content
Sign in to follow this  
Winters

Disabling Vehicle Weapons

Recommended Posts

Hi all,

I was wondering how i can disable a vehicles weapon without removing the ammo?

Maybe enable you to pop off a few rounds and then the weapon jams up and is unusable afterwards.

Edit: this would be for a HMMWV and not a tank.

Thanks in advance  smile_o.gif

Share this post


Link to post
Share on other sites

I tried this on an MGJeep:

this addeventhandler ["Fired",{deletevehicle nearestobject [_this select 0,_this select 4];_this select 0 removeweapon "Browning";_this select 0 removemagazine "Browning";_this select 0 addmagazine "Browning";_this select 0 addweapon "Browning"}]

You will still see the gun fire and hear the gun fire but there will be no bullet and no ammo loss.

Share this post


Link to post
Share on other sites

Is there anyway to stop the sounds and flash as well? i really need it to be totally disabled.

Share this post


Link to post
Share on other sites

The only way I know is to remove the ammo. (guessing you dont want to disable user input wink_o.gif )

Share this post


Link to post
Share on other sites

hmmm, would disabling user input allow them to leave the vehicle when it's attacked if they need to?

Share this post


Link to post
Share on other sites

Or you could get a little bit advanced and make an addon vehicle that cant fire and then replace a normal functioning vehicle with that one using deleteVehicle and createVehicle commands.

smile_o.gif   Just an idéa of a sollution

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  

×