scripted_ents.Get

From GMod Wiki

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