OnPlayerWeaponShot [Explosives/Melee] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerWeaponShot [Explosives/Melee] (
/showthread.php?tid=488254)
OnPlayerWeaponShot [Explosives/Melee] -
Admigo - 17.01.2014
About the OnPlayerWeaponShot.
Explosives and Melee cannot be detected as a hit?
Is it possible to fix it?
Admigo
Re: OnPlayerWeaponShot [Explosives/Melee] -
Kyle - 17.01.2014
For a start explosives and Melee do not give out shots, so why would this function be called.
But I do agree, it should be included but in another callback.
Re: OnPlayerWeaponShot [Explosives/Melee] -
Dragony92 - 17.01.2014
Yeah, it would be great to detect positions of bombs, tear gas bomb, rockets, etc... So you can add side efects to those bombs, napalm, nuclear, flash etc...
Re: OnPlayerWeaponShot [Explosives/Melee] -
Lordzy - 17.01.2014
Quote:
Originally Posted by KyleSmith
For a start explosives and Melee do not give out shots, so why would this function be called.
But I do agree, it should be included but in another callback.
|
Agreed on this fact. However, weapons which doesn't do the normal cross hair aiming doesn't support to get called under "OnPlayerWeaponShot" (Weapons like Snipers, RPG..) I've reported this already on
this thread.
Re: OnPlayerWeaponShot [Explosives/Melee] -
Flake. - 17.01.2014
I was actually thinking the same thing, the only think i can think off would be to use these but obviously they would be very buggy.
Just using the weapon ID for explode etc
Re: OnPlayerWeaponShot [Explosives/Melee] -
Admigo - 17.01.2014
We dont talk about deathmessages. We talk about the callback OnPlayerWeaponShot that should detect that we hit an object,player or vehicle with explosives or melee to add effects.