Player.SetNoCollideWithTeammates

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetNoCollideWithTeammates( Boolean NoCollide )
Description:
Set whether players no collide with teammates or not.
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetNoCollideWithTeammates]Player.SetNoCollideWithTeammates [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionThis will set a player to no collide with his teammates.
Used onNewerServer.png
Code
function NoCollidePeople( teamID )
	for _, ply in pairs( team.GetPlayers( teamID ) ) do
		ply:SetNoCollideWithTeammates( true )
	end
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox