Line of Sight?
#1

Is it possible to test the line of sight between two players? if so, how?
Reply
#2

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.
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)