Garry's Mod Wiki

Revision Difference

Entity:SetFlexWeight#551627

<function name="SetFlexWeight" parent="Entity" type="classfunc"> <description>Sets the flex weight.</description>⤶ <description>Sets the weight/value of given flex controller.⤶ <note>Only `96` flex controllers can be set! Flex controllers on models with higher amounts will not be accessible.</note>⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="flex" type="number">The ID of the flex to modify weight of</arg>⤶ <arg name="flex" type="number">The ID of the flex to modify weight of. The range is between `0` and <page>Entity:GetFlexNum</page> - 1.</arg>⤶ <arg name="weight" type="number">The new weight to set</arg> </args> </function>