Garry's Mod Wiki

duplicator.DoGeneric

duplicator.DoGeneric

  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

Special Pages


Wikis

?

Render Time: 25ms

DB GetPage 2
Generate Html 8
SaveChanges (1) 6
Render Body 0
Render Sidebar 7