Dota 2 Workshop Tools/Scripting/API/CDOTA PlayerResource.GetSteamID: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
No edit summary |
(Added some reference links discussing steam id.) |
||
Line 1: | Line 1: | ||
[[Category:Dota2Function]] | [[Category:Dota2Function]] | ||
[[Category:CDOTA_PlayerResource]] | [[Category:CDOTA_PlayerResource]] | ||
Line 25: | Line 24: | ||
== Returns == | == Returns == | ||
''unsigned'' - | ''unsigned'' - userdata | ||
== Notes == | |||
If you need to handle the 64 bit SteamID in Lua, it may be helpful to convert it to a string with: | |||
<source lang="lua">local steamId64 = tostring(PlayerResource:GetSteamID(PlayerID))</source> | |||
More information about the SteamID can be found here: | |||
* https://developer.valvesoftware.com/wiki/SteamID | |||
* http://whatsmysteamid.azurewebsites.net/ |
Revision as of 21:33, 7 February 2017
Function Description
unsigned GetSteamID( int iPlayerID )
Return player's steamID64
Parameters
Type | Name | Description |
---|---|---|
int | iPlayerID | No Description Set |
Returns
unsigned - userdata
Notes
If you need to handle the 64 bit SteamID in Lua, it may be helpful to convert it to a string with:
local steamId64 = tostring(PlayerResource:GetSteamID(PlayerID))
More information about the SteamID can be found here: