Garry's Mod Wiki

duplicator.DoBoneManipulator

  duplicator.DoBoneManipulator( Entity ent, table bones )

Description

"Restores the bone's data."

Loops through Bones and calls Entity:ManipulateBoneScale, Entity:ManipulateBoneAngles and Entity:ManipulateBonePosition on ent with the table keys and the subtable values s, a and p respectively.

Arguments

1 Entity ent
The entity to be bone manipulated
2 table bones
Table with a BoneManipulationData structure for every bone (that has manipulations applied) using the bone ID as the table index.