Global/TypeID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Bug)
(Bug)
Line 4: Line 4:
 
|Description=Gets the associated type ID of the variable.
 
|Description=Gets the associated type ID of the variable.
  
{{Bug|Request=1120|This does not work properly with _LOADLIB objects.}}
+
{{Bug|Request=1120|This returns garbage for _LOADLIB objects.}}
 +
{{Bug|Request=1459|This returns TYPE_NIL for {{Type|proto}}s.}}
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No

Revision as of 13:39, 14 November 2019

 TypeID( )

Description

Gets the associated type ID of the variable.

BUG

This returns garbage for _LOADLIB objects.

Request Tracker: #1120

BUG

This returns TYPE_NIL for protos.

Request Tracker: #1459

Arguments

any variable

The variable to get the type ID of.

Returns

number

The type ID of the variable. See the TYPE_ Enums.
Personal tools
Navigation