SlashCo Wiki

Player

player

This contains all function that SlashCo adds on top of Garry's Mod default functions.
Garry's Mod Wiki: https://wiki.facepunch.com/gmod/Player

Methods

table Player:FindPlayersInView( number distance, number radius, bool notrace = false )
Finds all players in a cone from our player's view and doing traces to filter for players obstructed by objects.
For slashers this respects the value of Player:GetCanSeePlayers returning an empty table if thir blind
number Player:GetFogMult( )
gets the fog multiplier that is for this player only. This function is created by the DTVar Networking System
Player:SetFogMult( number multiplier = 0 )
Sets the fog multiplier that is for this player only. This function is created by the DTVar Networking System
Player:SetImpervious( bool impervious )
Sets if the player is Impervious or not.
If enabled, a player will have no collisions with other players or doors.