SA-MP Forums Archive
Getting the position where weapon is shooting - 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: Getting the position where weapon is shooting (/showthread.php?tid=389849)



Getting the position where weapon is shooting - kelvin22 - 03.11.2012

Hello,

is there any way to get teh postion where weapon is shooting at? And to check if the player is behind a wall or he is shooting at it?


AW: Getting the position where weapon is shooting - Skimmer - 03.11.2012

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
To get player's position


Re: Getting the position where weapon is shooting - kelvin22 - 03.11.2012

I din't ask for that.


AW: Getting the position where weapon is shooting - Skimmer - 03.11.2012

This ?

https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector


Re: Getting the position where weapon is shooting - kelvin22 - 03.11.2012

Yes, I am using that but how I can check if the weapon is shoting at a wall?
I am making something like this
[ame]http://www.youtube.com/watch?v=fhyRHSzA8m8[/ame]


Re: Getting the position where weapon is shooting - MicroD - 03.11.2012

Check this https://sampforum.blast.hk/showthread.php?tid=256063, it may help.


Re: Getting the position where weapon is shooting - kelvin22 - 03.11.2012

Quote:
Originally Posted by MicroD
Посмотреть сообщение
Thank you thats help full!