ENT
Description
Information about the ENT structure, which represents a Scripted Entity class definition.
To learn more about scripted entities, see this page.
See also ENTITY Hooks for a list of events scripted entities can have. See Custom Entity Fields for a list of events and fields all entities can have.
While some of the fields may be serverside or clientside only, it is recommended to provide them on both so addons could use their values.
Members
- anim
- brush
- point
- ai
- nextbot
- filter
See Scripted Entities for a more detailed explanation of what each one is.
Default: false
Default: false
Default: false
Default: false
RenderGroup is not, will switch the render group to RENDERGROUP_BOTH when appropriate.
Basically, when the default render group of the entity's model is opaque, ENTITY:DrawTranslucent will still be called, for example to render effects and such. This is preferable to forcing translucent models to render in the opaque pass by setting RenderGroup to RENDERGROUP_BOTH at all times, causing graphical issues.
Default: false
Default: ""
Like many functions, this expects a path relative to the materials/ folder, do not include materials/ in the provided string.
Default: "entities/<ClassName>.png"
Can be used to make the entity pass though certain otherwise solid meshes, such as grates, or special clip brushes.
nextbot, anim and ai type SENTs.Default: nil
anim type entities, if set, enables physics collision sounds.Default: false
Garry's Mod
Rust
Steamworks
Wiki Help