Garry's Mod Wiki

Revision Difference

Entity:SetNetworkedVarProxy#527666

<function name="SetNetworkedVarProxy" parent="Entity" type="classfunc"> <description> <deprecated>You should be using <page>Entity:SetNWVarProxy</page> instead.</deprecated> Sets callback function to be called when given NWVar changes. <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="485-L493">lua/includes/extensions/entity.lua</file> <args> <arg name="name" type="string">The name of the NWVar to add callback for.</arg> <arg name="callback" type="function">The function to be called when the NWVar changes.</arg> </args> </function>