Functions/Vector/Shared/isInSight

From Official DarkRP Wiki
Jump to navigation Jump to search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Vector/Shared/isInSight]Vector:isInSight[/url][/b]

Function parameters

  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

  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.