Contents
Returns the type of one of the sockets in the item currently in the item socketing window.
Arguments[edit | edit source]
- Index
- Number - The 1-based index of the socket for which to get information.
Returns[edit | edit source]
- SocketType
- String - The type of the socket at position Index. The value could be any of these (apparently unlocalized) strings:
- "Red" - Red socket
- "Yellow" - Yellow socket
- "Blue" - Blue socket
- "Meta" - Meta socket
- "Socket" - Prismatic socket
- String - The type of the socket at position Index. The value could be any of these (apparently unlocalized) strings:
Example[edit | edit source]
local SocketCount = GetNumSockets() for i = 1, SocketCount do print(GetSocketInfo(i)) end
Details[edit | edit source]
This function is only useful if the item socketing window is currently visible.
Community content is available under CC-BY-SA unless otherwise noted.