Garry's Mod Wiki

duplicator.GenericDuplicatorFunction

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

Special Pages


Wikis

?

Render Time: 74ms

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