Garry's Mod Wiki


  ENTITY:OnDuplicated( table entTable )


Called on any entity after it has been created by the duplicator and before any bone/entity modifiers have been applied.

This hook is called after ENTITY:Initialize and before ENTITY:PostEntityPaste.


1 table entTable
The stored data about the original entity that was duplicated. This would typically contain the Entity:GetTable fields that are serializalble. See EntityCopyData structure.