Player.GetAvoidPlayers

From GMod Wiki

Revision as of 21:14, 19 August 2010 by MulleDK13 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:GetAvoidPlayers( )
Description:
Returns true if the player gets pushed out of other players that are Nocollided.
Returns: Boolean Avoiding
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetAvoidPlayers]Player.GetAvoidPlayers [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis will paint players that can be pushed out of other players that are Nocollided.
Used onNewerServer.png
Code
 
function PaintIfAvoiding( )
	for _, ply in pairs( player.GetAll() ) do
		if ( ply:IsValid() and ply:GetAvoidPlayers() == true ) then
			ply:SetColor(  255, 0, 0, 255 )
		end
	end
end
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox