Garry's Mod Wiki

scripted_ents.Get

table scripted_ents.Get( string classname )

Description

Returns a copy of the ENT table for a class, including functions defined by the base class

Arguments

1 string classname
The classname of the ENT table to return, can be an alias

Returns

1 table
entTable

Example

Use of PrintTable function to print the contents of base_entity SENT table.

PrintTable(scripted_ents.Get("base_entity"))
Output:
AdminOnly = false Base = base_entity ClassName = base_entity Folder = entities/base_entity Initialize = function: 0x2a205b50 OnRestore = function: 0x2a6d4b90 Spawnable = false Think = function: 0x2a153780 Type = anim

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 43
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 12