Garry's Mod Wiki

Custom Entity Fields

Description

Information about custom fields all entities can have.

See also Structures/ENT

Parameters

function GetEntityDriveMode
Serverside, Sandbox and Sandbox derived only.

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

function OnEntityCopyTableFinish
function PostEntityCopy
Documented at ENTITY:PostEntityCopy.
function PostEntityPaste
Documented at ENTITY:PostEntityPaste.
function PreEntityCopy
Documented at ENTITY:PreEntityCopy.
function OnDuplicated
Documented at ENTITY:OnDuplicated.
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

function GravGunPickupAllowed
function GravGunPunt
Documented at ENTITY:GravGunPunt.
function CanProperty
Documented at ENTITY:CanProperty.
function CanTool
Documented at ENTITY:CanTool.
function CalcAbsolutePosition
function RenderOverride
Documented at ENTITY:RenderOverride.
Vector m_RenderOrigin
(Clientside) Do not use.
Angle m_RenderAngles
(Clientside) Do not use.