Garry's Mod Wiki

ENTITY:OnDuplicated

  ENTITY:OnDuplicated( table entTable )

Description

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.

Arguments

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.