Jump to content

how to detect vehicle weapons


Wojak

Recommended Posts

Posted

detect or include weapon, hm? maybe you want detect vehicle weapon by command or something?

Guy From Uk

MTA SA 1.1 - Skateboarding - 68%

MTA SA 1.1 - Pet shop - 43%

guyfromuk.gif

indianai.gif

Posted (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 by Guest
Posted

how are you detecting which weapon hit vehicle?

onVehicleDamage has only loss argument..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
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 :(

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...