duplicator/GenericDuplicatorFunction

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Library function fixes.)
m (Added return value)
 
Line 9: Line 9:
 
{{Arg
 
{{Arg
 
|type=Player
 
|type=Player
|name=Player
+
|name=ply
 
|desc=The player who wants to create something
 
|desc=The player who wants to create something
 
}}
 
}}
Line 16: Line 16:
 
|name=data
 
|name=data
 
|desc=The duplication data to build the entity with
 
|desc=The duplication data to build the entity with
 +
}}
 +
{{Ret
 +
|type=Entity
 +
|desc=The newly created entity
 
}}
 
}}

Latest revision as of 21:43, 22 January 2015

 duplicator.GenericDuplicatorFunction( )

Contents

Description

"Generic function for duplicating stuff"
This is called when duplicator.CreateEntityFromTable can't find an entity factory to build with. It calls duplicator.DoGeneric and duplicator.DoGenericPhysics to apply standard duplicator stored things such as the model and position.

Arguments

Player ply

The player who wants to create something

Arguments

table data

The duplication data to build the entity with

Returns

Entity

The newly created entity
Personal tools
Navigation