Garry's Mod Wiki

Garry's Mod Wiki

  table scripted_ents.GetStored( string classname )

Description

Returns the actual ENT table for a class. Modifying functions/variables in this table will change newly spawned entities

Arguments

1 string classname
The classname of the ENT table to return

Returns

1 table
entTable

Example

Modifies all newly spawned gmod_button's to print a message on use

local ENT = scripted_ents.GetStored("gmod_button").t local oldUse = ENT.Use function ENT:Use(activator, caller, type, value) print(tostring(self.Entity).." just got pressed!") oldUse(self,activator, caller, type, value) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...