Garry's Mod Wiki

Entity:GetNetworked2VarProxy

  function Entity:GetNetworked2VarProxy( 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.

Output:
nil function: builtin#25