Garry's Mod Wiki

Garry's Mod Wiki

  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 EntityCopyData structure

Returns

1 Entity
The newly created entity

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...