ENT.PostEntityPaste
From GMod Wiki
Event Hook | |
Hook Name | PostEntityPaste |
Syntax | ENT:PostEntityPaste( Player Player, Table Ent, Table CreatedEntities ) |
Description | Called after the duplicator pastes an entity |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=ENT.PostEntityPaste]ENT.PostEntityPaste [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The keys for the CreatedEntities table are the EntityIDs of the entities that were originally copied, so to get the entity reference of any created entity you must save the index of the original entity, and use it in the index of the CreatedEntities table