Talk:Entity/NetworkVarNotify

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "The fact that it only works on SENTs is kind of implied. I mean, this function has no use if an entity doesn't have a NetworkVar. Do players even have NetworkVars? Consider r...")
 
Line 2: Line 2:
  
 
Consider removing or rewriting that note. I don't want to go on an edit war.
 
Consider removing or rewriting that note. I don't want to go on an edit war.
 +
 +
 +
That isn't quite true, NetworkVars are just dummy setters/getters that get added by InstallDataTable, internally NetworkVars use dtvars which are available to every entity, this callback can also be applied to any entity you want as long as you :InstallDataTable() on it and define the networkvars yourself.
 +
 +
I could argue that this function is useless as hell as it triggers only on manual sets on the variables, regardless of usefulness this can work on anything like :InstallDataTable and :NetworkVar defines --[[User:Jvs|Jvs]] 10:17, 23 May 2016 (UTC)

Revision as of 10:17, 23 May 2016

The fact that it only works on SENTs is kind of implied. I mean, this function has no use if an entity doesn't have a NetworkVar. Do players even have NetworkVars?

Consider removing or rewriting that note. I don't want to go on an edit war.


That isn't quite true, NetworkVars are just dummy setters/getters that get added by InstallDataTable, internally NetworkVars use dtvars which are available to every entity, this callback can also be applied to any entity you want as long as you :InstallDataTable() on it and define the networkvars yourself.

I could argue that this function is useless as hell as it triggers only on manual sets on the variables, regardless of usefulness this can work on anything like :InstallDataTable and :NetworkVar defines --Jvs 10:17, 23 May 2016 (UTC)

Personal tools
Navigation