← API types < Unit:GetClassId
Returns the unit's class ID.
local eClassId = unit::GetClassId()
Return Values[edit]
- integer - The unit's class ID. This value corresponds with the GameLib.CodeEnumClass enum.
Examples[edit]
local eClassId = GameLib.GetPlayerUnit():GetClassId()