Garry's Mod Wiki

duplicator.GenericDuplicatorFunction

  Entity duplicator.GenericDuplicatorFunction( Player ply, table data )

Description

"Generic function for duplicating stuff"

This is called when duplicator.CreateEntityFromTable can't find an entity factory to build with. It calls duplicator.DoGeneric and duplicator.DoGenericPhysics to apply standard duplicator stored things such as the model and position.

Arguments

1 Player ply
The player who wants to create something
2 table data
The duplication data to build the entity with

Returns

1 Entity
The newly created entity