OnPlayerWeaponShot sometimes does not react?
#5

Quote:
Originally Posted by NaS
Посмотреть сообщение
If no bullet is actually shot (which is the case when you shoot the sky or a target that is too far for the collision to be loaded), the callback won't be called. Simple as that.

The cause is a lack of a bullet.

Note: this is for the Sniper (since Sniper works a bit different from other guns). Take other weapons and it works (although the hit point retrieved by GetPlayerLastShotVector will be wrong - 23.040445, 0.0, 0.0 mostly).
Yes, I just find that out myself.
And I also found out that OnPlayerWeaponShot is not called if a bullet connects with a dynamic object. If you shoot object created with CreateObject it works fine, but if you shoot at dynmic object OnPlayerWeaponShot doesn't react
Reply


Messages In This Thread
OnPlayerWeaponShot sometimes does not react? - by ax1 - 28.06.2017, 17:09
Re: OnPlayerWeaponShot sometimes does not react? - by Luicy. - 28.06.2017, 18:17
Re: OnPlayerWeaponShot sometimes does not react? - by Meller - 28.06.2017, 18:17
Re: OnPlayerWeaponShot sometimes does not react? - by NaS - 28.06.2017, 18:37
Re: OnPlayerWeaponShot sometimes does not react? - by ax1 - 28.06.2017, 18:47
Re: OnPlayerWeaponShot sometimes does not react? - by NaS - 28.06.2017, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)