Wojak Posted November 19, 2010 Share Posted November 19, 2010 i need a way to detect vehicle weapons hitting a nother vehicle (hunter minigun, rustler gun and seasparrow gun). i've tried using the onClientPlayerWeaponFire event, but the weapons i need are not supported... any ideas? Link to comment
guyfromuk Posted November 19, 2010 Share Posted November 19, 2010 detect or include weapon, hm? maybe you want detect vehicle weapon by command or something? Link to comment
Wojak Posted November 19, 2010 Author Share Posted November 19, 2010 (edited) let my try to explain once more: I want to know a point in time and space when PlayerA that is in VehicleA (hunter, rustler or seasparrow) is hitting a VehicleB (not necessary occupied by any player) using vehicle weapons (hunter minigun, rustler gun and seasparrow gun). i am able to detect weapons such ak-47 or uzi, i even find a way to detect projectile based weapons (hunter and hydra rockets or rihno canon), so there must be some way to detect the 3 last weapons i need... any ideas? Edited November 20, 2010 by Guest Link to comment
dzek (varez) Posted November 19, 2010 Share Posted November 19, 2010 how are you detecting which weapon hit vehicle? onVehicleDamage has only loss argument.. Link to comment
50p Posted November 20, 2010 Share Posted November 20, 2010 how are you detecting which weapon hit vehicle?onVehicleDamage has only loss argument.. I'm guessing https://wiki.multitheftauto.com/wiki/OnC ... WeaponFire Wojak, as far as I know, you can't detect the hit of these vehicle weapons. Link to comment
Wojak Posted November 20, 2010 Author Share Posted November 20, 2010 how are you detecting which weapon hit vehicle?onVehicleDamage has only loss argument.. I'm using onClientPlayerWeaponFire and onClientExplosion events. This id not giving me any informations about HP loss, but the informations i need: "Who used the weapon" and "witch vehicle was hit" Wojak, as far as I know, you can't detect the hit of these vehicle weapons. thats bad... now i will have to use the backup plan involving checking the control state and processing the line of sight- and that will not work perfect Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now