Garry's Mod Wiki

Revision Difference

Custom_Entity_Fields#528869

<cat>Dev</cat> <structure> <description> Information about custom fields **all** entities can have. See also <page>Structures/ENT</page> </description> <fields> <item name="GetEntityDriveMode" type="function">`Serverside`, Sandbox and Sandbox derived only. Called by the Drive property to override the default drive type, which is `drive_sandbox`.</item> <item name="OnEntityCopyTableFinish" type="function">Documented at <page>ENTITY:OnEntityCopyTableFinish</page>.</item> <item name="PostEntityCopy" type="function">Documented at <page>ENTITY:PostEntityCopy</page>.</item> <item name="PostEntityPaste" type="function">Documented at <page>ENTITY:PostEntityPaste</page>.</item> <item name="PreEntityCopy" type="function">Documented at <page>ENTITY:PreEntityCopy</page>.</item> <item name="OnDuplicated" type="function">Documented at <page>ENTITY:OnDuplicated</page>.</item> <item name="PhysgunDisabled" type="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 <page>Sandbox Specific Mapping</page></item> <item name="PhysgunPickup" type="function">`Shared`, Sandbox or Sandbox derived only. Called from <page>GM:PhysgunPickup</page>, overrides `PhysgunDisabled`</item> <item name="m_tblToolsAllowed" type="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 <page>Sandbox Specific Mapping</page></item> <item name="GravGunPickupAllowed" type="function">Documented at <page>ENTITY:GravGunPickupAllowed</page>.</item> <item name="GravGunPunt" type="function">Documented at <page>ENTITY:GravGunPunt</page>.</item> <item name="CanProperty" type="function">Documented at <page>ENTITY:CanProperty</page>.</item> <item name="CanTool" type="function">Documented at <page>ENTITY:CanTool</page>.</item>⤶ <item name="CalcAbsolutePosition" type="function">Documented at <page>ENTITY:CalcAbsolutePosition</page>.</item> <item name="RenderOverride" type="function">Documented at <page>ENTITY:RenderOverride</page>.</item> <item name="m_RenderOrigin" type="Vector">(Clientside) Do not use.</item> <item name="m_RenderAngles" type="Angle">(Clientside) Do not use.</item> </fields> </structure>