Enum.SqDestroy - VCMP-SqMod/SqMod GitHub Wiki
Several sample reasons why an entity is being destroyed. These identifiers will be in the header parameter if the plug-in destroyed that entity automatically or the user specified them manually. Otherwise they won't be used. The values in these enumeration elements will always be negative to allow the distinction between player identifiers and plug-in identifiers.
enum SqDestroy
Name | Type | Description |
---|---|---|
Default | integer |
Default value when no header was specified |
Manual | integer |
Can be used when a user destroys the entity manually |
Pool | integer |
Will be used the entity was destroyed in the server pool automatically |
Automatic | integer |
Will be used when the entity is destroyed automatically for some reason |
Overwrite | integer |
Can be used to specify that this entity is meant to be overwritten by another |
Cleanup | integer |
Will be used when the plug-in is releasing everything and entities are cleaned automatically |