Garry's Mod Wiki

Revision Difference

Entity:SetFriction#551039

<function name="SetFriction" parent="Entity" type="classfunc"> <description> Sets friction multiplier for this entity when sliding against a surface. Entities default to 1 (100%) and can be higher. For players, the range is 0 to 10. <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>⤶ ⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="friction" type="number">Friction multiplier</arg> </args> </function>