Garry's Mod Wiki

cleanup.ReplaceEntity

  boolean cleanup.ReplaceEntity( Entity from, Entity to )

Description

Replaces one entity in the cleanup module with another.

You very likely want to call undo.ReplaceEntity with the same entities as well.

Arguments

1 Entity from
Old entity
2 Entity to
New entity. Can be a NULL entity to remove the old entity from the cleanup system.

Returns

1 boolean
Whether any action was taken.