Garry's Mod Wiki

Garry's Mod Wiki

  duplicator.DoGeneric( Entity ent, table data )

Description

"Applies generic every-day entity stuff for ent from table data."

Depending on the values of Model, Angle, Pos, Skin, Flex, Bonemanip, ModelScale, ColGroup, Name, and BodyG (table of multiple values) in the data table, this calls Entity:SetModel, Entity:SetAngles, Entity:SetPos, Entity:SetSkin, duplicator.DoFlex, duplicator.DoBoneManipulator, Entity:SetModelScale, Entity:SetCollisionGroup, Entity:SetName, Entity:SetBodygroup on ent.

If ent has a RestoreNetworkVars function, it is called with data.DT.

Arguments

1 Entity ent
The entity to be applied upon
2 table data
The data to be applied onto the entity

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...