mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

onClientProjectileCreation won't be called if rocket explodes immediately

Open ds1-e opened this issue 3 years ago • 5 comments

Describe the bug Event won't be called if projectile (rocket) explodes pretty much instantly.

To reproduce

  1. Run code given below.
  2. Get rocket launcher.
  3. Shoot directly under your feet.
  4. Profit.
function onClientProjectileCreation()
	local tickCount = getTickCount()

	print(tickCount)
end
addEventHandler("onClientProjectileCreation", root, onClientProjectileCreation)

Expected behaviour It should be called.

Screenshots /

Version Client/server: MTA:SA Server v1.5.9-release-21002

Additional context /

ds1-e avatar Oct 02 '21 21:10 ds1-e