ENT.PostEntityCopy
From GMod Wiki
Event Hook | |
Hook Name | PostEntityCopy |
Syntax | ENT:PostEntityCopy( ) |
Description | Called after the duplicator copies an entity |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=ENT.PostEntityCopy]ENT.PostEntityCopy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Removes the entity when it is copied, so it's like a cut-paste operation |
---|---|
Used on | |
Code | function ENT:PostEntityCopy() self:Remove() end |
Output | BANG! and the Entity is gone |