ENT.PostEntityPaste

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePostEntityPaste
SyntaxENT:PostEntityPaste( Player Player, Table Ent, Table CreatedEntities )
DescriptionCalled after the duplicator pastes an entity
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=ENT.PostEntityPaste]ENT.PostEntityPaste [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionSets the previously saved Vehicle reference
Used onNewerServer.png
Code
function ENT:PostEntityPaste(pl, Ent, CreatedEntities)
	self:SetVehicle(CreatedEntities[Ent.EntityMods.VehicleID])
end
OutputThe entity has its vehicle set after previous duping


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox