# Class Creature [-] [+]

Non-Player controlled Units (i.e. NPCs).

Inherits all methods from: Object, WorldObject, Unit

## Methods

AddAllowedLooterForAllSlots | Adds a Player to the allowed looters for all items
AddAllowedLooterForItem | Adds a Player to the allowed looters for the specified item
AddAllowedLooterForSlot | Adds a Player to the allowed looters for the specified slot
AddLootMode | Adds a loot mode to the Creature
AddLootStoreItem | Adds an item to the Creature's loot.
AddThreat | Adds threat to the Creature from the victim.
AttackStart | Make the Creature attack `target`.
CallAssistance | Make the Creature call for assistance in combat from other nearby Creatures.
CallForHelp | Make the Creature call for help in combat from friendly Creatures within `radius`.
CanAggro | Returns `true` if the Creature can start attacking nearby hostile Units, and returns `false` otherwise.
CanAssistTo | Returns `true` if the Creature can assist `friend` in combat against `enemy`, and returns `false` otherwise.
CanCompleteQuest | Returns `true` if the Creature completes the Quest with the ID `questID`, and returns `false` otherwise.
CanFly | Returns `true` if the Creature can fly, and returns `false` otherwise.
CanStartAttack | Returns true if the Creature can start attacking specified target
CanSwim | Returns `true` if the Creature can move through deep water, and returns `false` otherwise.
CanWalk | Returns `true` if the Creature can move on land, and returns `false` otherwise.
ClearFixate | Clears the Creature's fixated target.
ClearThreat | Clear the threat of a Unit in this Creature's threat list.
ClearThreatList | Clear the Creature's threat list. This will cause evading.
DespawnOrUnsummon | Despawn this Creature.
FixateTarget | Forces the Creature to fixate on the Unit, regardless of threat. Requires the Unit to be in the threat list.
FleeToGetAssistance | Make the Creature flee combat to get assistance from a nearby friendly Creature.
GetAIName | Returns the Creature's AI name.
GetAITarget | Returns a target from the Creature's threat list based on the supplied arguments.
GetAITargets | Returns all Units in the Creature's threat list.
GetAITargetsCount | Returns the number of Units in this Creature's threat list.
GetAggroRange | Returns the aggro range of the Creature for `target`.
GetAttackDistance | Returns the effective aggro range of the Creature for `target`.
GetCorpseDelay | Returns the delay between when the Creature dies and when its body despawns.
GetCreatureFamily | Returns the Creature's creature family ID (enumerated in CreatureFamily.dbc).
GetCreatureSpellCooldownDelay | Returns the Creature's cooldown for `spellID`.
GetCurrentWaypointId | Returns the current waypoint ID of the Creature.
GetDBTableGUIDLow | Returns the guid of the Creature that is used as the ID in the database
GetDefaultMovementType | Returns the default movement type for this Creature.
GetExtraFlags | Returns the Creature's Extra flags.
GetHomePosition | Returns position the Creature returns to when evading from combat or respawning.
GetLootItemInSlot | Returns the item entry in the specified slot
GetLootMode | Returns the loot mode for the Creature.
GetLootRecipient | Returns the Player that can loot this Creature.
GetLootRecipientGroup | Returns the Group that can loot this Creature.
GetNPCFlags | Returns the Creature's NPC flags.
GetRespawnDelay | Returns the time it takes for this Creature to respawn once killed.
GetScriptId | Returns the Creature's script ID.
GetScriptName | Returns the Creature's script name.
GetShieldBlockValue | Returns the Creature's shield block value.
GetThreat | Returns the threat of a Unit in this Creature's threat list.
GetVendorItemCurrentCount | Returns the current vendor item countfrom the Creature for given itemId and extendedCost arguments.
GetWanderRadius | Returns the radius the Creature is permitted to wander from its respawn point.
GetWaypointPath | Returns the current waypoint path ID of the Creature.
HasCategoryCooldown | Returns `true` if the Creature cannot cast `spellId` due to a category cooldown, and returns `false` otherwise.
HasLootMode | Returns true if Creature has the specified loot mode
HasLootRecipient | Returns `true` if the Creature will give its loot to a Player or Group, and returns `false` otherwise.
HasQuest | Returns `true` if the Creature starts the Quest `questId`, and returns `false` otherwise.
HasSearchedAssistance | Returns `true` if the Creature has searched for combat assistance already, and returns `false` otherwise.
HasSpell | Returns `true` if the Creature can cast `spellId` when mind-controlled, and returns `false` otherwise.
HasSpellCooldown | Returns `true` if the Creature has `spellId` on cooldown, and returns `false` otherwise.
IsCivilian | Returns `true` if the Creature is a civilian, and returns `false` otherwise.
IsDamageEnoughForLootingAndReward | Returns true if the Creature is damaged enough for looting
IsDungeonBoss | Returns `true` if the Creature's flags_extra includes Dungeon Boss (0x1000000), and returns `false` otherwise.
IsElite | Returns `true` if the Creature's rank is Elite or Rare Elite, and returns `false` otherwise.
IsGuard | Returns `true` if the Creature is a city guard, and returns `false` otherwise.
IsInEvadeMode | Returns `true` if the Creature is returning to its spawn position from combat, and returns `false` otherwise.
IsRacialLeader | Returns `true` if the Creature is the leader of a player faction, and returns `false` otherwise.
IsRegeneratingHealth | Returns `true` if the Creature can regenerate health, and returns `false` otherwise.
IsReputationGainDisabled | Returns `true` if the Creature is set to not give reputation when killed, and returns `false` otherwise.
IsTappedBy | Returns `true` if the Creature will give its loot to `player`, and returns `false` otherwise.
IsTargetableForAttack | Returns `true` if the Creature can be targeted for attack, and returns `false` otherwise.
IsTrigger | Returns `true` if the Creature is an invisible trigger, and returns `false` otherwise.
IsWorldBoss | Returns `true` if the Creature's rank is Boss, and returns `false` otherwise.
MoveWaypoint | Make the Creature start following its waypoint path.
RemoveCorpse | Remove this Creature's corpse.
RemoveLootMode | Removes specified loot mode from Creature
ResetAllThreat | Resets the Creature's threat list, setting all threat targets' threat to 0.
ResetLootMode | Resets Creature's loot mode to default
ResetVendorItemCurrentCount | Reset the current vendor item count from the Creature for given itemId and extendedCost arguments.
Respawn | Respawn this Creature.
SaveToDB | Save the Creature in the database.
SelectVictim | Make the Creature try to find a new target.
SetAggroEnabled | Sets whether the Creature can be aggroed.
SetChaseDistance | Sets the Creature's maximum chase distance.
SetCorpseDelay | Sets the Creature's corpse delay.
SetDeathState | Sets the Creature's death state to `deathState`.
SetDefaultMovementType | Sets the default movement type of the Creature.
SetDisableGravity | Makes the Creature able to fly if enabled.
SetDisableReputationGain | Sets whether the Creature gives reputation or not.
SetEquipmentSlots | Equips given Items to the Unit. Using 0 removes the equipped Item
SetHomePosition | Sets the position the Creature returns to when evading from combat or respawning.
SetHover | Sets whether the creature is hovering / levitating or not.
SetInCombatWithZone | Sets the Creature as in combat with all Players in the dungeon instance.
SetLootMode | Sets the loot mode for the Creature.
SetNPCFlags | Sets the Creature's NPC flags to `flags`.
SetNoCallAssistance | Sets whether the Creature can call nearby enemies for help in combat or not.
SetNoSearchAssistance | Sets whether the Creature can search for assistance at low health or not.
SetReactState | Sets the Creature's ReactState to `state`.
SetRegeneratingHealth | Sets whether the Creature can regenerate health or not.
SetRespawnDelay | Sets the time it takes for the Creature to respawn when killed.
SetWalk | Sets whether the Creature is currently walking or running.
SetWanderRadius | Sets the distance the Creature can wander from it's spawn point.
ToPet | Attempts to convert the Creature to a Pet.
UpdateEntry | Transform the Creature into another Creature.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine