Garry's Mod Wiki

Entity:SetFriction

Entity:SetFriction( number friction )

Description

Sets how much friction an entity has when sliding against a surface. Entities default to 1 (100%) and can be higher or even negative.

This only multiplies the friction of the entity, to change the value itself use PhysObj:SetMaterial.
Works only for MOVETYPE_STEP entities.
This has no effect on players.

Issue Tracker: 1395

Arguments

1 number friction
Friction multiplier

Page Links


Special Pages


Wikis

?

Render Time: 150ms

DB GetPage 44
Generate Html 1
SaveChanges (1) 90
Render Body 0
Render Sidebar 13