ENTITY:PostEntityPaste

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

Contents

Description

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

This hook is called after ENTITY:OnDuplicated.

Arguments

Player ply

The player who pasted the entity.

WARNING 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.

Arguments

Entity ent

The entity itself. Same as 'self'.

Arguments

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.
Personal tools
Navigation