Garry's Mod Wiki


  duplicator.DoGenericPhysics( Entity ent, Player ply = nil, table data )


"Applies bone data, generically."

If data contains a PhysicsObjects table, it moves, re-angles and if relevent freezes all specified bones, first converting from local coordinates to world coordinates.


1 Entity ent
The entity to be applied upon
2 Player ply = nil
The player who owns the entity. Unused in function as of early 2013
3 table data
The data to be applied onto the entity