Scripted Entities
From Garry's Mod
(Difference between revisions)
Robotboy655 (Talk | contribs) (Perhaps we also need to move ENT_AI hooks (from sidebar) to a separate category like NextBot hooks are.) |
Robotboy655 (Talk | contribs) |
||
Line 32: | Line 32: | ||
|} | |} | ||
− | The following is usable with Scripted Entities: | + | =Scripting= |
+ | The following is usable with '''Scripted Entities''': | ||
* [[:Category:ENTITY_Hooks|SENT Hooks]] | * [[:Category:ENTITY_Hooks|SENT Hooks]] | ||
* {{Struct|ENT}} | * {{Struct|ENT}} | ||
* {{Type|Entity}} functions | * {{Type|Entity}} functions | ||
+ | |||
+ | The following is usable with '''Scripted Weapons''' (Also known as '''SWEP'''s): | ||
+ | * [[:Category:WEAPON_Hooks|SWEP Hooks]] | ||
+ | * {{Struct|SWEP}} | ||
+ | * {{Type|Weapon}} functions |
Revision as of 15:42, 25 June 2017
Scripted Entities (or SENTs for short) are custom entities coded entirely in Lua.
Scripted Entity Types
There are 6 different types of Scripted Entities:
ai | A scripted NPC. (Also known as SNPCs) All NPC functions and certain AI hooks are also usable on these entities. |
nextbot | A NextBot NPC. A newer "style" NPCs with better navigation. All NextBot functions and NEXTBOT 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. |
Scripting
The following is usable with Scripted Entities:
- SENT Hooks
- ENT structure
- Entity functions
The following is usable with Scripted Weapons (Also known as SWEPs):
- SWEP Hooks
- SWEP structure
- Weapon functions