Garry's Mod Wiki

ENTITY:PostEntityPaste

ENTITY:PostEntityPaste( Player ply, Entity ent, table createdEntities )

Description

Called after the duplicator pastes the entity, after the bone/entity modifiers have been applied to the entity.

This hook is called after ENTITY:OnDuplicated.

Arguments

1 Player ply
The player who pasted the entity.

This may not be a valid player in some circumstances. For example, when a save is loaded from the main menu, this hook will be called before the player is spawned. This argument will be a NULL entity in that case.
This will be nil for invalid players.
2 Entity ent
The entity itself. Same as 'self'.
3 table createdEntities
All entities that are within the placed dupe. <note>The keys of each value in this table are the original entity indexes when the duplication was created. This can be utilized to restore entity references that don't get saved in duplications.</note>

Page Links


Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 14
Render Body 0
Render Sidebar 11