From Garry's Mod
Sets a function to be called when the NWVar changes.
|NOTE||Currently this function only works for the NW2Var system (accessed by adding a 2 in between NW and Var for most NWVar functions), which will replace the original one at some point in the future|
The name of the NWVar to add callback for.
Prints all changes to a NWVar called "Key" of Player 1.
Entity( 1 ):SetNWVarProxy( "Key", print ) Entity( 1 ):SetNWString( "Key", "Value" ) Entity( 1 ):SetNWString( "Key", "Table" )
Player [Player1] Key nil Value
Player [Player1] Key Value Table