Garry's Mod Wiki

Custom Entity Fields

Description

Information about custom fields that are not exclusive to Scripted Entities, fields that have an effect on any entity.

See also ENT structure

Members

function GetEntityDriveMode
Sandbox and Sandbox derived only.

Called by the Drive property to override the default drive type, which is drive_sandbox.

boolean PhysgunDisabled
Sandbox or Sandbox derived only.

If set to true, physgun will not be able to pick this entity up. This can also be set from map, see Sandbox Specific Mapping

function PhysgunPickup
Sandbox or Sandbox derived only.

Called from GM:PhysgunPickup, overrides PhysgunDisabled

table m_tblToolsAllowed
Sandbox or Sandbox derived only.

Controls which tools and properties can be used on this entity. Format is a list of strings where each string is the tool or property classname.

This can also be set from map, see Sandbox Specific Mapping