Entity/GetNWVarProxy

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

Contents

Description

Returns callback function for given NWVar of this entity.

Arguments

any key

The key of the NWVar to get callback of.

Returns

function

The callback of given NWVar, or nil if not found.

Examples

Example

Prints callback function of a NWVar called "Key" of Player 1.

print( Entity(1):GetNWVarProxy( "Key" ) )
Entity(1):SetNWVarProxy( "Key", print )
print( Entity(1):GetNWVarProxy( "Key" ) )

Output:

nil
function: builtin#25
Personal tools
Navigation