duplicator.CreateEntityFromTable

From GMod Wiki

Revision as of 01:27, 5 June 2010 by TB99 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax duplicator.CreateEntityFromTable( Player Player, Table EntTable )
Where is this used?
Description:
Creates an entity from a table.
Returns: Entity Entity
Part of Library: duplicator
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Duplicator.CreateEntityFromTable]Duplicator.CreateEntityFromTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example creates an entity from a table copied using the duplicator's CopyEntTable function.
Used onNewerServer.png
Code
 
 
local EntTable = duplicator.CopyEntTable(Entity)
duplicator.CreateEntityFromTable(Player, EntTable)
 
OutputNone
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox