Garry's Mod Wiki

Revision Difference

Custom_Entity_Fields#526843

<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="PhysgunDisabled" type="boolean">`Shared`, Sandbox or Sandbox derived only.⤶ ⤶ If set to `true`, physgun will not be able to pick this entity up. This is 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 is 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>⤶ ⤶ </fields>⤶ ⤶ </structure>