Garry's Mod Wiki

Entity:GetNWInt

Entity:GetNWInt

  any Entity:GetNWInt( string key, any fallback = 0 )

Description

Retrieves a networked integer (whole number) value that was previously set by Entity:SetNWInt.

This function will not round decimal values as it actually networks a float internally.

Issue Tracker: 3374

Arguments

1 string key
The key that is associated with the value
2 any fallback = 0
The value to return if we failed to retrieve the value (If it isn't set).

Returns

1 any
The value associated with the key

Special Pages


Wikis

?

Render Time: 59ms

DB GetPage 39
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 7