Line of Sight? - 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: Line of Sight? (
/showthread.php?tid=560692)
Line of Sight? -
jeffery30162 - 30.01.2015
Is it possible to test the line of sight between two players? if so, how?
Re: Line of Sight? -
Gangster-rocks - 30.01.2015
What do you mean? Like distance that's needed for player to show to another or what?
If so, I don't think that's possible, but I think you can do it for name tags, I guess.
Re: Line of Sight? -
Abagail - 30.01.2015
As it's client-sided no. I remember seeing a thread exactly like this a few days ago(maybe around a week ago), and I believe a BT answered saying the same thing. It'd be impossible to retreive the line of sight between two players, as it is not data that is sent to the server.
Re: Line of Sight? -
DRIFT_HUNTER - 30.01.2015
Thread was mine suggesting implementation of these feature.
For now only way i know is to use map andreas. Its hard for server and not accurate in most cases.
But there is a plugin in a development ColAndreas (Col - stands for Collision). These would allow you to check for line of sight. But its still not released yet.
Re: Line of Sight? -
Gangster-rocks - 30.01.2015
Quote:
Originally Posted by Abagail
(maybe around a week ago)
|
About a week ago *shmoney dances*
OT:
I think you can script something using YSF plugin, topic:
https://sampforum.blast.hk/showthread.php?tid=513499
HidePlayerForPlayer and ShowPlayerForPlayer functions on a specific range. This is only an advice from my side, I won't script the whole code for you as you have to learn for future purposes. Anyway, this is most likely the best Idea I've got. Cheers, hope this works with you.