Scripted Entities

From GMod Wiki

Revision as of 18:53, 26 November 2010 by Di-0xide (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A Scripted Entity (SENT for short) is a Lua scripted entity in Garry's Mod. For example, the bouncy ball entity, included in Garry's Mod. It's scripted in Lua to make a randomly colored ball, that bounces away when hitting a surface.

How can I make one?

As stated before, SENTs are scripted with Lua, so making one will take some Lua knowledge. This page is merely to describe what one is. Although you can look at the source code of a SENT that you recently have downloaded, and try to learn the simple coding structure from that. (Just don't steal the code.)

Refer to the Lua Folder Structure for more information, or check out Ricky's_Example_SENT for a brief, down and dirty tutorial on scripting a SENT.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox