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? create your teleports and interiors in MTA map editor want more excitment in your race map? - add a killer bot you may also add some peds (NPC) - CARMAGEDDON STYLE! 2paq MTA:SA Race Server
guyfromuk Posted November 19, 2010 Posted November 19, 2010 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%
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 create your teleports and interiors in MTA map editor want more excitment in your race map? - add a killer bot you may also add some peds (NPC) - CARMAGEDDON STYLE! 2paq MTA:SA Race Server
dzek (varez) Posted November 19, 2010 Posted November 19, 2010 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)!
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. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
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 create your teleports and interiors in MTA map editor want more excitment in your race map? - add a killer bot you may also add some peds (NPC) - CARMAGEDDON STYLE! 2paq MTA:SA Race Server
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