IsUnitInDungeon

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(Explanation of what it considered a dungeon for this function)
 
Line 1: Line 1:
-
Dungeon is considered - solo instances, group dungeons, trials, and delves
+
This function returns true if the specified unit is inside of a solo instance, group dungeon, trial, or delve; the function returns false otherwise.
 +
 
 +
== Arguments ==
 +
;unitTag
 +
: A string representing a unit tag.
 +
 
 +
== Example ==
 +
<source lang="lua">
 +
if IsUnitInDungeon("reticleover") then
 +
  d("You're in a dungeon! You can get an achievement for blocking a ton of damage while you're here.")
 +
end
 +
</source>
 +
 
 +
== External links ==
 +
* {{GitHubSearchLink}}
 +
 
 +
[[Category:API functions]]
 +
[[Category:Unit functions]]

Latest revision as of 15:01, 4 November 2019

This function returns true if the specified unit is inside of a solo instance, group dungeon, trial, or delve; the function returns false otherwise.

Arguments

unitTag
A string representing a unit tag.

Example

if IsUnitInDungeon("reticleover") then
   d("You're in a dungeon! You can get an achievement for blocking a ton of damage while you're here.")
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox