Revision Difference
Entity:GetNetworked2VarProxy#560280
<function name="GetNetworked2VarProxy" parent="Entity" type="classfunc">
<description>Returns callback function for given NWVar of this entity.</description>
<realm>Shared</realm>
<file line="564-L575">lua/includes/extensions/entity.lua</file>
<file line="613-L624">lua/includes/extensions/entity.lua</file>
<args>
<arg name="key" type="any">The key of the NWVar to get callback of.</arg>
</args>
<rets>
<ret name="" type="function">The callback of given NWVar, or nil if not found.</ret>
</rets>
</function>
<example>
<description>Prints callback function of a NWVar called "Key" of Player 1.</description>
<code>
print( Entity(1):GetNetworked2VarProxy( "Key" ) )
Entity(1):SetNetworked2VarProxy( "Key", print )
print( Entity(1):GetNetworked2VarProxy( "Key" ) )
</code>
<output>
```
nil
function: builtin#25
```
</output>
</example>