Garry's Mod Wiki

Entity:Dissolve

  Entity:Dissolve( number type = 0, number magnitude = 0, Vector origin = nil )

Recently Added

This was recently added in version (2024.05.14). It might only be available on the Dev Branch right now.

Description

Dissolves the entity.

Arguments

1 number type = 0
Dissolve type. Should be one of the following values:
ID Description
0 ENTITY_DISSOLVE_NORMAL
1 ELECTRICAL
2 ELECTRICAL_LIGHT
3 ENTITY_DISSOLVE_CORE
2 number magnitude = 0
Magnitude of the dissolve effect, its effect depends on the dissolve type.
3 Vector origin = nil
The origin for the dissolve effect, its effect depends on the dissolve type. Defaults to entity's origin.