ENTITY:OnEntityCopyTableFinish

From Garry's Mod
Jump to: navigation, search
 ENTITY:OnEntityCopyTableFinish( )

Contents

Description

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

This is called after ENTITY:PostEntityCopy.

Arguments

table data

The save EntityCopyData structure that you can modify.

Examples

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


Personal tools
Navigation