Functions/Vector/Shared/isInSight

From DarkRP
Function
Function name Vector:isInSight(table filter, Player ply)
Description:
Decides whether the vector could be seen by the player if they were to look at it.
Returns: boolean answer, Vector HitPos
Part of Library: Vector
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Vector/Shared/isInSight]Vector:isInSight[/url][/b]

Function parameters[edit]

  1. filter (table)
  2. Trace filter that decides what the player can see through.

  3. ply (Player)
  4. The player for whom the vector may or may not be visible.


Function return values[edit]

  1. answer (boolean)
  2. Whether the player can see the position.

  3. HitPos (Vector)
  4. The position of the thing that blocks the player's sight.