WoW:API IsMounted: Difference between revisions
Jump to navigation
Jump to search
| Line 16: | Line 16: | ||
If the player is mounted then the value of mounted will be ''true''. However if the player is not mounted then mounted will have a value of ''false''. To save space, instead of assiging the return value of IsMounted() to mounted, IsMounted() can be inserted into the code like a number. | If the player is mounted then the value of mounted will be ''true''. However if the player is not mounted then mounted will have a value of ''false''. To save space, instead of assiging the return value of IsMounted() to mounted, IsMounted() can be inserted into the code like a number. | ||
/script if IsMounted() | /script if not IsMounted() then... | ||
In this case if the player is not mounted then the code after then will be excuted. | In this case if the player is not mounted then the code after then will be excuted. | ||
== Details == | == Details == | ||
IsMounted() was added in Patch 2.0.1 | IsMounted() was added in Patch 2.0.1 | ||
Revision as of 11:20, 19 September 2019
Checks to see if the player is mounted or not.
Arguments
None
Returns
true if the player is currently mounted, false otherwise
Example Code
mounted = IsMounted()
If the player is mounted then the value of mounted will be true. However if the player is not mounted then mounted will have a value of false. To save space, instead of assiging the return value of IsMounted() to mounted, IsMounted() can be inserted into the code like a number.
/script if not IsMounted() then...
In this case if the player is not mounted then the code after then will be excuted.
Details
IsMounted() was added in Patch 2.0.1