Garry's Mod Wiki

Custom Entity Fields

Description

Information about custom fields all entities can have.

See also Structures/ENT

Parameters

GetEntityDriveMode [function]

Serverside, Sandbox and Sandbox derived only.

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

OnEntityCopyTableFinish [function]

PostEntityCopy [function]

Documented at ENTITY:PostEntityCopy.

PostEntityPaste [function]

Documented at ENTITY:PostEntityPaste.

PreEntityCopy [function]

Documented at ENTITY:PreEntityCopy.

OnDuplicated [function]

Documented at ENTITY:OnDuplicated.

PhysgunDisabled [boolean]

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

PhysgunPickup [function]

Shared, Sandbox or Sandbox derived only.

Called from GM:PhysgunPickup, overrides PhysgunDisabled

m_tblToolsAllowed [table]

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

GravGunPickupAllowed [function]

GravGunPunt [function]

Documented at ENTITY:GravGunPunt.

CanProperty [function]

Documented at ENTITY:CanProperty.

CalcAbsolutePosition [function]

RenderOverride [function]

Documented at ENTITY:RenderOverride.

m_RenderOrigin [Vector]

(Clientside) Do not use.

m_RenderAngles [Angle]

(Clientside) Do not use.

Page Links


Special Pages


Wikis

?

Render Time: 61ms

DB GetPage 2
Generate Html 35
SaveChanges (1) 9
Render Body 0
Render Sidebar 12