Garry's Mod Wiki

Revision Difference

duplicator.Copy#516981

<function name="Copy" parent="duplicator" type="libraryfunc"> <description>Copies the entity, and all of its constraints and entities, then returns them in a table.</description> <realm>Server</realm> <args> <arg name="ent" type="Entity">The entity to duplicate. The function will automatically copy all constrained entities.</arg> <arg name="tableToAdd" type="table" default="{}">A preexisting table to add entities and constraints in from.&#xA;Uses the same table format as the table returned from this function.</arg> </args> <rets> <ret name="" type="table">A table containing duplication info which includes the following members: * {{FuncArg|table|Entities</ret>⤶ * <page>table</page> Entities⤶ * <page>table</page> Constraints⤶ * <page>Vector</page> Mins⤶ * <page>Vector</page> Maxs⤶ ⤶ The values of Mins &amp; Maxs from the table are returned from <page>duplicator.WorkoutSize</page></ret>⤶ </rets> </function> ⤶ * {{FuncArg|table|Constraints}} * {{FuncArg|Vector|Mins}}⤶ * {{FuncArg|Vector|Maxs}}⤶ ⤶ The values of Mins & Maxs from the table are returned from <page>duplicator.WorkoutSize</page>⤶ }}