Garry's Mod Wiki

Revision Difference

Entity:SetFriction#551031

<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>⤶ 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> <realm>Server</realm>⤶ <realm>Shared</realm>⤶ <args> <arg name="friction" type="number">Friction multiplier</arg> </args> </function>