Garry's Mod Wiki

Garry's Mod Wiki

  Entity:SetFlexWeight( number flex, number weight )

Description

Sets the weight/value of given flex controller.

Only 96 flex controllers can be set! Flex controllers on models with higher amounts will not be accessible.

Arguments

1 number flex
The ID of the flex to modify weight of. The range is between 0 and Entity:GetFlexNum - 1.
2 number weight
The new weight to set. See Entity:GetFlexBounds for the model-defined input range.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...