-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onPlayerProjectileCreation does not work properly #3410
Comments
As far i remember tank only creates explosion, and not projectile. |
Isnt it a tank grenade which is sort of projectile, could be totally wrong here. |
I don't see tank grenade in createProjectile wiki page. But it is here, see: explosion types |
I believe tank grenades are indeed not an actual projectile. The game just creates an explosion at the location you're aiming at but does not create a projectile in the process. |
Alright but why is it not triggering for createProjectile? |
I guess because the event is coming from a hook when projectiles get created, and the game never creates an actual projectile for explosions. |
so the wiki entry is wrong: This event is triggered every time a projectile is created by a player - either through a weapon, a vehicle weapon or createProjectile. |
Sorry, I was thinking about the client-side. This is server-side: mtasa-blue/Server/mods/deathmatch/logic/CGame.cpp Line 2809 in 06d1f1d
and some lines below: mtasa-blue/Server/mods/deathmatch/logic/CGame.cpp Line 2839 in 06d1f1d
Edit: Each "clientside local" projectile that triggers |
resolved |
Describe the bug
The event does not trigger for following actions:
Event works fine for:
Steps to reproduce
Add the event and shoot a tank or use the code:
crun setTimer(createProjectile, 1000, 5, localPlayer, 19)
Version
Server: MTA:SA Server v1.6-release-22472
Additional context
No response
Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: