How to get a coordinate of the smoke grenade? - 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: How to get a coordinate of the smoke grenade? (
/showthread.php?tid=415959)
How to get a coordinate of the smoke grenade? -
Tamer - 15.02.2013
How can I get the coordinate of a smoke grenade tossed out? (thrown)
Re: How to get a coordinate of the smoke grenade? -
SuperViper - 15.02.2013
You can't. You should create a little formula which involves how long the player held the key down and then use the result of the formula as the distance parameter in
GetDistanceFromPlayer. I don't have a link to the
GetDistanceFromPlayer function right now but it gets a point in front of the player.
Re: How to get a coordinate of the smoke grenade? -
Tamer - 15.02.2013
It will also matter with what angle is the player looking,they might be looking up so the nade will go higher,or it can be looking down,it will not fly that much. Its kinda hard I see