Garry's Mod Wiki

Entity:GetNetworkedVarProxy

  function Entity:GetNetworkedVarProxy( string name )

Description

This function was superseded by Entity:GetNetworked2VarProxy. This page still exists an archive in case anybody ever stumbles across old code and needs to know what it is

Returns callback function for given NWVar of this entity, previously set by Entity:SetNWVarProxy.

Arguments

1 string name
The name of the NWVar to get callback of.

Returns

1 function
The callback of given NWVar, if any.
Function argument(s):
1 Entity ent - The entity
2 string name - Name of the NWVar that has changed
3 any oldval - The old value
4 any newval - The new value

Example

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

Output:
nil function: builtin#25