Garry's Mod Wiki

SafeRemoveEntity

  SafeRemoveEntity( Entity ent )

Description

Removes the given entity unless it is a player or the world entity

Arguments

1 Entity ent
Entity to safely remove.