Garry's Mod Wiki

duplicator.CreateEntityFromTable

duplicator.CreateEntityFromTable

  Entity duplicator.CreateEntityFromTable( Player ply, table entTable )

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

1 Player ply
The player who wants to create something
2 table entTable
The duplication data to build the entity with. See Structures/EntityCopyData

Returns

1 Entity
The newly created entity

Special Pages


Wikis

?

Render Time: 74ms

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