duplicator.CopyEntTable

From GMod Wiki

Jump to: navigation, search
Function
Syntax duplicator.CopyEntTable( Entity Entity )
Where is this used?
Description:
Creates a table from an entity that is ready for duplication.
Returns: Table EntTable
Part of Library: duplicator
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Duplicator.CopyEntTable]Duplicator.CopyEntTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example copies an entity's table and creates a new one using the duplicator's CreateEntityFromTable 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