Jump to content
Sign in to follow this  
mattsmith94

Indication of Weapon Firing.

Recommended Posts

I want to write a script which is triggered by a weapon firing. In this case the weapon is vehicle mounted (Tank Main Gun) but could also be extended to Rocket Launchers or Placed Explosive Devices. Could any one please advise how to detect when a weapon has been fired.

 

Thanks

 

Share this post


Link to post
Share on other sites

The thing is that a tank has more than one weapon.

 

Why would this code apply to the tank main gun rather than another weapon?

 

.

.

Share this post


Link to post
Share on other sites

The thing is that a tank has more than one weapon.

 

Why would this code apply to the tank main gun rather than another weapon?

 

.

.

 

In the code of the event handler, you can check which weapon was fired and take the appropriate action.....

 

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#Fired

Share this post


Link to post
Share on other sites

The thing is that a tank has more than one weapon.

 

Why would this code apply to the tank main gun rather than another weapon?

 

.

.because its to do with backblast, concussion ect

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  

×