Entity/GetNWVarTable

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|Description=Returns all the networked variables in an entity.
 
|Description=Returns all the networked variables in an entity.
  
{{NextUpdate|This feature is currently unavailable. It will be released in a future update. It is part of the NW2Vars which never reached proper stability to be released.}}
+
{{NextUpdate}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 13: Line 13:
 
|Description=Prints all NWVars that exist for Player 1.
 
|Description=Prints all NWVars that exist for Player 1.
 
|Code=PrintTable( Entity(1):GetNWVarTable() )
 
|Code=PrintTable( Entity(1):GetNWVarTable() )
|Output=<pre>UserGroup = owner</pre>
+
|OutputFixedWidth=Fixed width
 +
|Output=UserGroup = owner
 
}}
 
}}

Revision as of 15:47, 15 January 2020

 Entity:GetNWVarTable( )

Contents

Description

Returns all the networked variables in an entity.


Next Update Change

This feature is only available in the next update.

Returns

table

Key-Value table of all networked variables.

Examples

Example

Prints all NWVars that exist for Player 1.

PrintTable( Entity(1):GetNWVarTable() )

Output:

UserGroup	=	owner
Personal tools
Navigation