Garry's Mod Wiki

Entity:ManipulateBoneJiggle

  Entity:ManipulateBoneJiggle( number boneID, number type )

Description

Manipulates the bone's jiggle status. This allows non jiggly bones to become jiggly.

Arguments

1 number boneID
Index of the bone you want to manipulate.
2 number type
The jiggle bone type. There are currently the following options:
  • 0 = No jiggle override, use model default
  • 1 = Force jiggle, with hardcoded settings
  • 2 = Force disable jiggle bone (currently also broken, but will be fixed in the next update)

Example

Turn everyone into jelly mode.

for _, ply in ipairs( player.GetAll() ) do local i = 0 while i < ply:GetBoneCount() do ply:ManipulateBoneJiggle( i, 1 ) i = i + 1 end end