scripted_ents.Get

From GMod Wiki

Revision as of 20:27, 10 October 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax scripted_ents.Get( String class )
Where is this used?
Description:
Returns a copy of the class table for the requested class of scripted entities.
Returns: Table
Part of Library: scripted_ents
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Scripted ents.Get]Scripted ents.Get [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCheck to see if the server has the Spacebuild Model Pack SENT airlock installed
Used onNewerShared.png
Code
if scripted_ents.Get( "airlock" ) then
	RunSomeFunctionHere( )
end
OutputWill call the function RunSomeFunction is the SENT is registered.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox