getfenv

From Garry's Mod
Jump to: navigation, search
 getfenv( )

Description

Returns the environment table of either the stack level or the function specified.

Arguments

function location=1

The object to get the enviroment from. Can also be a number that specifies the function at that stack level: Level 1 is the function calling getfenv.

Returns

table

The environment.
Personal tools
Navigation