game.CleanUpMap

From Garry's Mod
Jump to: navigation, search
 game.CleanUpMap( )

Description

If called serverside it will remove ALL entities which were not created by the map(not players or weapons held by players).

On the client it will remove decals, sounds, gibs, dead NPCs, and entities created via ents.CreateClientProp.

This function calls GM:PreCleanupMap before cleaning up the map and GM:PostCleanupMap after cleaning up the map.

Arguments

boolean dontSendToClients=false

If set to true, don't run this functions on all clients.

Arguments

table ExtraFilters={}

Entity classes not to reset during cleanup.
Personal tools
Navigation