BUG in OnPlayerWeaponShot - 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: BUG in OnPlayerWeaponShot (
/showthread.php?tid=488666)
BUG in OnPlayerWeaponShot -
Spooke - 18.01.2014
When shoot on the object why it shows the type 4 ?
And Not Work!
Re: BUG in OnPlayerWeaponShot -
IstuntmanI - 18.01.2014
hittype 4 is BULLET_HIT_TYPE_PLAYER_OBJECT, so that means that you have to use Player-Objects functions for it, not Objects functions.
https://sampwiki.blast.hk/wiki/BulletHitTypes
Re: BUG in OnPlayerWeaponShot -
Spooke - 18.01.2014
I shoot in a simple object but shows 4 hittype!
AW: BUG in OnPlayerWeaponShot -
BigETI - 18.01.2014
Do you use an object streamer?
Re: BUG in OnPlayerWeaponShot -
Spooke - 19.01.2014
Yes, thank you ... I even forgot about it!
CLOSED
Re: BUG in OnPlayerWeaponShot -
Edvin - 19.01.2014
How do you know that you've shoot a normal object and not a player object? I think it's not possible to return value 4 (BULLET_HIT_TYPE_PLAYER_OBJECT) if you didn't shoot any of them.