SA-MP Forums Archive
Question about GetPlayerTargetPlayer - 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: Question about GetPlayerTargetPlayer (/showthread.php?tid=552219)



Question about GetPlayerTargetPlayer - knackworst - 23.12.2014

Hey I was wondering, if you use the function GetPlayerTargetPlayer but if the target player is hiden behind an object that has been created through CreateObject, what will GetPlayerTargetPlayer return?

So basically I'm asking if players that can't be seen can be targeted?

Thanks in advance


Re: Question about GetPlayerTargetPlayer - Vince - 23.12.2014

I'm fairly sure it only works when the green triangle is displayed above the other player's head, but you may want to test it out to be sure.


Re: Question about GetPlayerTargetPlayer - knackworst - 23.12.2014

Thanks
So I assume the green traingle only pops up when there's no obstruction, right?


Re: Question about GetPlayerTargetPlayer - Write - 23.12.2014

No. GetPlayerTargetPlayer gets the range it dosen't matter if they're behind a wall, it will still execute.