From DarkRP
Jump to navigation Jump to search
Function name Vector:isInSight(table filter, Player ply)
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: NewerShared.png
BBCode Link: [b][url=]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.