Пользовательские дополнения

На главную


unit.IsPet( unitId )

Возвращает true, если указанный юнит - чей-то пет.

-- библиотека:
unit

-- объявление:
function IsPet( unitId )

-- параметры:
unitId: ObjectId (not nil) -- идентификатор юнита

-- возвращаемые значения -
boolean - true, если это пет

-- пример:
local petId = unit.GetActivePet( unitId )
local isPet = unit.IsPet( petId )

Search: "CategoryLuaApi" "CategoryPet"

EventActivePetChanged
EventActivePetSpellsChanged
EventActivePetStateChanged
EventPartyMemberActivePetChanged
EventPetInfoChanged
EventUnitFollowersListChanged
FunctionAvatarGetPetActiveSpell
FunctionAvatarGetPetAggroMode
FunctionAvatarGetPetMoveMode
FunctionAvatarGetPetSpells
FunctionAvatarIsPetInCombat
FunctionAvatarPetAttack
FunctionAvatarSetPetActiveSpell
FunctionAvatarSetPetAggroMode
FunctionAvatarSetPetMoveMode
FunctionUnitGetActivePet
FunctionUnitGetFollowerMaster
FunctionUnitGetFollowers
FunctionUnitGetLastPetType
FunctionUnitGetPetName
FunctionUnitGetPetOwner
FunctionUnitIsPet


CategoryLuaApi CategoryFunction CategoryUnit CategoryPet

На главную