duplicator.CreateEntityFromTable

From Garry's Mod
Jump to: navigation, search
 duplicator.CreateEntityFromTable( )

Contents

Description

"Create an entity from a table."
This creates an entity using the data in EntTable.
If an entity factory has been registered for the entity's Class, it will be called.
Otherwise, duplicator.GenericDuplicatorFunction will be called instead.

Arguments

Player ply

The player who wants to create something

Arguments

table entTable

The duplication data to build the entity with. See EntityCopyData structure

Returns

Entity

The newly created entity
Personal tools
Navigation