duplicator.GenericDuplicatorFunction

From Garry's Mod
Revision as of 21:43, 22 January 2015 by Yupi2 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 duplicator.GenericDuplicatorFunction( )

Contents

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

Player ply

The player who wants to create something

Arguments

table data

The duplication data to build the entity with

Returns

Entity

The newly created entity
Personal tools
Navigation