SA-MP Forums Archive
Grenade Position - 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: Grenade Position (/showthread.php?tid=296999)



Grenade Position - Infamous - 13.11.2011

Hi there, does anyone know of a way to detect where a greneade has landed after being thrown?

Any help or suggestions are appreciated.

Edit: I am assuming that grenades could be detected as an object in order to make use of AttatchObjectToObject aswell?


Re: Grenade Position - KosmasRego - 13.11.2011

I think not...


Re: Grenade Position - [HiC]TheKiller - 13.11.2011

You probably could detect how long the person has held the grenade for using the SHOOT button then calculate the distance it would have travelled, but this wouldn't be accurate because if it hit a wall, it wouldn't work.


Re: Grenade Position - KosmasRego - 13.11.2011

It's SA:MP we talking about not CoD


Re: Grenade Position - Infamous - 13.11.2011

Hmm, yeah that would be a big flaw in my script TheKiller, thanks though for trying pal.
If anyone else has an idea on how this could be done then please do comment, I know it's a long shot but there may be a way.