How do i check what a player can see in their sight
1 replies, posted
the title speaks for itself , ply:GetEyeTrace or GetEyeTraceNoCursor cuz they didnt work
GetEyeTrace returns a table with many things. If you want to get what is the player looking at, use ply:GetEyeTrace().Entity.
More info here:
[url]https://wiki.garrysmod.com/page/Structures/TraceResult[/url]
If you want to check if something is within a player line of sight, that would be a bit more complicated. Perhaps you'll find the solution here:
[url]https://facepunch.com/showthread.php?t=1362830[/url]
Sorry, you need to Log In to post a reply to this thread.