Garry's Mod Wiki

Entity:GetNW2VarTable

  table Entity:GetNW2VarTable()

Description

Returns all the NW2 variables in an entity.

This function will return keys with empty tables if the NW2Var is nil.

Issue Tracker: 5396

Returns

1 table
Key-Value table of all NW2 variables.

Example

Structure of the returned table.

Entity(1):SetNW2String("Example", "Example") PrintTable(Entity(1):GetNW2VarTable())
Output:
Example: type = String value = Example