Entity:SetNW2VarProxy
Description
Sets a function to be called when the NW2Var changes. Internally uses GM:EntityNetworkedVarChanged to call the function.
Alias of Entity:SetNetworked2VarProxy
You should not use the NW2 System on entities that are based on a Lua Entity, or else this will be called multiple times and the NW2Var could get mixed up with other ones.
Issue Tracker: 5455
Issue Tracker: 5455
Only one NW2VarProxy can be set per-var
Running this function will only set it for the realm it is called on.
Running this function will only set it for the realm it is called on.
Arguments
Example
Prints all changes to a NW2Var called "Key" of Player 1.
Output: Player [1][Player1] Key nil Value
Player [1][Player1] Key Value Table