Garry's Mod Wiki

Entity:GetNWVarProxy

function Entity:GetNWVarProxy( any key )

Description

Returns callback function for given NWVar of this entity.

Arguments

1 any key
The key of the NWVar to get callback of.

Returns

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

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

Page Links


Special Pages


Wikis

?

Render Time: 42ms

Session 0
DB GetPage 8
Generate Html 3
SaveChanges 17
Render Body 0
Render Sidebar 11