Garry's Mod Wiki

Revision Difference

Entity:SetFriction#527474

<function name="SetFriction" parent="Entity" type="classfunc"> <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. <note>This only multiplies the friction of the entity, to change the value itself use <page>PhysObj:SetMaterial</page>.</note>⤶ <note>Works only for MOVETYPE_STEP entities.</note> <bug issue="1395">This has no effect on players.</bug> </description> <realm>Server</realm> <args> <arg name="friction" type="number">Friction multiplier</arg> </args> </function>