Revision Difference
Entity:GetNetworkedVarProxy#527667
<function name="GetNetworkedVarProxy" parent="Entity" type="classfunc">
	<description>
<deprecated>You should be using <page>Entity:GetNWVarProxy</page> instead.</deprecated>
Returns callback function for given NWVar of this entity.
<note>Currently this function only works for the NW2Var system (accessed by adding a 2 in between Networked and Var for most NetworkedVar functions), which will replace the original one at some point in the future</note>⤶
	</description>
	<realm>Shared</realm>
	<file line="495-L506">lua/includes/extensions/entity.lua</file>
	<args>
		<arg name="name" type="string">The name of the NWVar to get callback of.</arg>
	</args>
	<rets>
		<ret name="" type="function">The callback of given NWVar, if any.</ret>
	</rets>
</function>
<example>
	<description>Prints callback function of a NWVar called "Key" of Player 1.</description>
	<code>
print( Entity(1):GetNetworkedVarProxy( "Key" ) )
Entity(1):SetNetworkedVarProxy( "Key", print )
print( Entity(1):GetNetworkedVarProxy( "Key" ) )
	</code>
	<outputfixedwidth>Fixed width</outputfixedwidth>
	<output>
nil
function: builtin#25
	</output>
</example>
 Garry's Mod
			Garry's Mod 
		 Rust
			Rust 
		 Steamworks
			Steamworks 
		 Wiki Help
			Wiki Help