Garry's Mod Wiki

Revision Difference

Custom_Entity_Fields#563243

<cat>Dev.Entities</cat> <structure> <description> Information about custom fields that are not exclusive to <page>Scripted Entities</page>, fields that have an effect on any entity. See also <page>Structures/ENT</page> </description> <fields> <item name="GetEntityDriveMode" type="function" realm="server">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" realm="shared">Sandbox or Sandbox derived only. Called by the [Drive property](Entity_Driving) to override the default drive type, which is `drive_sandbox`.</item> <item name="OnEntityCopyTableFinish" type="function" realm="server">Documented at <page>ENTITY:OnEntityCopyTableFinish</page>.</item> <item name="PostEntityCopy" type="function" realm="server">Documented at <page>ENTITY:PostEntityCopy</page>.</item> <item name="PostEntityPaste" type="function" realm="server">Documented at <page>ENTITY:PostEntityPaste</page>.</item> <item name="PreEntityCopy" type="function" realm="server">Documented at <page>ENTITY:PreEntityCopy</page>.</item> <item name="OnDuplicated" type="function" realm="server">Documented at <page>ENTITY:OnDuplicated</page>.</item> <item name="PhysgunDisabled" type="boolean" realm="shared" default="false">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" realm="shared">Sandbox or Sandbox derived only. Called from <page>GM:PhysgunPickup</page>, overrides `PhysgunDisabled`</item> <item name="m_tblToolsAllowed" type="table" realm="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" realm="Client">Do not use.</item> <item name="m_RenderAngles" type="Angle" realm="Client">Do not use.</item> <item name="GravGunPickupAllowed" type="function" realm="server">Documented at <page>ENTITY:GravGunPickupAllowed</page>.</item> <item name="GravGunPunt" type="function" realm="shared">Documented at <page>ENTITY:GravGunPunt</page>.</item> <item name="CanProperty" type="function" realm="shared">Documented at <page>ENTITY:CanProperty</page>.</item> <item name="CanTool" type="function" realm="shared">Documented at <page>ENTITY:CanTool</page>.</item> <item name="DoNotDuplicate" type="boolean" default="false" realm="server">If set, the entity will not be duplicated via the built-in duplicator system.</item> ⤶ <item name="CalcAbsolutePosition" type="function" realm="shared">Documented at <page>ENTITY:CalcAbsolutePosition</page>.</item> <item name="RenderOverride" type="function" realm="client">Documented at <page>ENTITY:RenderOverride</page>.</item> ⤶ <item name="m_RenderOrigin" type="Vector" realm="client">Internal. Do not use. Use <page>Entity:SetRenderOrigin</page> instead.</item> <item name="m_RenderAngles" type="Angle" realm="client">Internal. Do not use. Use <page>Entity:SetRenderAngles</page> instead.</item>⤶ </fields> </structure>