ENT.PostEntityCopy

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePostEntityCopy
SyntaxENT:PostEntityCopy( )
DescriptionCalled after the duplicator copies an entity
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=ENT.PostEntityCopy]ENT.PostEntityCopy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionRemoves the entity when it is copied, so it's like a cut-paste operation
Used onNewerServer.png
Code
function ENT:PostEntityCopy()
	self:Remove()
end
OutputBANG! and the Entity is gone


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox