Wojak Posted November 19, 2010 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?
guyfromuk Posted November 19, 2010 Posted November 19, 2010 detect or include weapon, hm? maybe you want detect vehicle weapon by command or something?
Wojak Posted November 19, 2010 Author 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
dzek (varez) Posted November 19, 2010 Posted November 19, 2010 how are you detecting which weapon hit vehicle? onVehicleDamage has only loss argument..
50p Posted November 20, 2010 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.
Wojak Posted November 20, 2010 Author 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
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