mm - 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: mm (
/showthread.php?tid=334137)
mm -
Marricio - 13.04.2012
How to check XYZ of where a tearga/grenade lands?
It is possible?
Re: mm -
ReneG - 13.04.2012
I don't think so..
Would require a lot of math.
Re: mm -
DeathTone - 14.04.2012
You could probably do it with GetXYInfrontOfPlayer and GetPlayerFacingAngle (And maybe checking when the player hits and releases the fire button, but it would be very difficult), but otherwise its impossible to check where the projectile landed.
Re: mm -
[HiC]TheKiller - 14.04.2012
It's possible but you would need to detect how long the player held the grenade and it's trajectory. What would you actually use this for in the first place?
Re: mm -
Marricio - 15.04.2012
Oops, sorry for being late. I wanted to sync teargas for my server. I tought of calculating the power depending how much time the player holded the button, but im not up to that since i'm not good at math.
Re: mm -
MP2 - 15.04.2012
Well you can't detect walls anyway, so..