Garry's Mod Wiki

ENTITY:OnEntityCopyTableFinish

  ENTITY:OnEntityCopyTableFinish( table data )

Description

Called after duplicator finishes saving the entity, allowing you to modify the save data.

This is called after ENTITY:PostEntityCopy.

Arguments

1 table data
The save EntityCopyData structure that you can modify.

Example

Prevent this entity from being copied and subsequently pasted.

function ENT:OnEntityCopyTableFinish( data ) for k, v in pairs( data ) do data[ k ] = nil end end