Garry's Mod Wiki

Custom Entity Fields

Description

Information about custom fields all entities can have.

See also ENT structure

Members

function GetEntityDriveMode
Serverside, Sandbox and Sandbox derived only.

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

boolean PhysgunDisabled
Shared, 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
Shared, Sandbox or Sandbox derived only.

Called from GM:PhysgunPickup, overrides PhysgunDisabled

table m_tblToolsAllowed
Shared, 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

Vector m_RenderOrigin
(Clientside) Do not use.
Angle m_RenderAngles
(Clientside) Do not use.