Пользовательские дополнения
На главную
unit.GetClassId( unitId )
Возвращает ресурс класса персонажа CharacterClassId.
Получить класс юнита
<pre>
-- библиотека:
unit
-- объявление:
function GetClassId( unitId )
-- параметры:
unitId: ObjectId (not nil) -- идентификатор юнита
-- возвращаемые значения:
CharacterClassId or nil - идентификатор класса игрока или nil, если это не игрок
-- пример:
local classId = unit.GetClassId( unitId )
if classId then
LogInfo( classId:GetInfo( className ) )
end
Search: "CategoryLuaApi" "CategoryUnitInfo"
CategoryUnitInfo
EventMobRelatedQuestsChanged
EventPlayerGreatChanged
EventUnitFatalityChanged
EventUnitVeteranRankChanged
FunctionUnitCanUse
FunctionUnitGetClass
FunctionUnitGetClassId
FunctionUnitGetFaction
FunctionUnitGetGuildInfo
FunctionUnitGetLevel
FunctionUnitGetPetName
FunctionUnitGetPlayerTitle
FunctionUnitGetQuality
FunctionUnitGetRace
FunctionUnitGetRelatedQuests
FunctionUnitGetSex
FunctionUnitGetTitle
FunctionUnitGetTrainerClass
FunctionUnitGetTrioInfo
FunctionUnitGetVeteranRank
FunctionUnitGetZonePvPDanger
FunctionUnitGetZonePvPType
FunctionUnitIsAggressive
FunctionUnitIsEnemy
FunctionUnitIsFatalityDeath
FunctionUnitIsFriend
FunctionUnitIsGreat
FunctionUnitIsPlayer
FunctionUnitIsTagged
FunctionUnitIsTaggedByMainPlayer
FunctionUnitIsTrainer
FunctionUnitIsUsable
CategoryLuaApi
CategoryFunction
CategoryUnit
CategoryUnitInfo
На главную