Revision Difference
Scripted_Entities#529688
<cat>Dev</cat>
**Scripted Entities** (or **SENT**s for short) are custom entities coded entirely in Lua.
⤶
The difference from **Engine Entities** being that you cannot use on engine entities.
⤶
They are usually defined in a separate `.lua` file in the `lua/entities/` folder.
⤶
The difference from **Engine Entities** being that you cannot use <page>ENTITY Hooks</page> on engine entities.⤶
# Scripted Entity Types
There are 6 different types of Scripted Entities:
| ENT.Type | Description |
|
| nextbot | A NextBot NPC. A newer "style" NPCs with better navigation.<br/><br/>All <page>NextBot</page> functions and hooks are also usable on these entities. |
| anim | A normal entity with visual and/or physical presence in the game world, such as props or whatever else you can imagine. |
| brush | A serverside only trigger entity. Mostly used very closely with the Hammer Level Editor. |
| point | A usually serverside only entity that doesn't have a visual or physical representation in the game world, such as logic entities. |
| filter | A different kind of "point" entity used in conjunction with trigger ("brush" type) entities. |
| ai | 2004 Source Engine NPC system NPC entity |
| ai | 2004 Source Engine NPC system entity |
# Scripting
The following is usable with **Scripted Entities**:
* ⤶
* <page>Structures/ENT</page>
* <page>ENTITY hooks</page>⤶
* <page>Entity</page> functions
The following is usable with **Scripted Weapons** (Also known as **SWEP**s):
* <page>Structures/SWEP</page>
* <page>Entity</page> functions
* <page>Weapon</page> functions* <page>Weapon</page> functions⤶
* <page>WEAPON hooks</page>