Revision Difference
Entity:SetFriction#562146
<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>⤶
⤶
</description>⤶
⤶
This may not affect all entities, but does work for players (the range is 0 to 10), as well as other entities using <page text="MOVETYPE_STEP ">Enums/MOVETYPE#MOVETYPE_STEP </page>⤶
⤶
This only multiplies the friction of the entity, to change the value itself use <page>PhysObj:SetMaterial</page>.⤶
</description>⤶
<realm>Shared</realm>
<args>
<arg name="friction" type="number">Friction multiplier</arg>
</args>
</function>