WoW:API IsMounted: Difference between revisions

m
Move page script moved page API IsMounted to WoW:API IsMounted without leaving a redirect
(I was confused because "if IsMounted() == nil" was never working, until I tested "/script print(IsMounted())" and found out that the function now outputs 'true' or 'false' (possibly new to 7.0.3?))
m (Move page script moved page API IsMounted to WoW:API IsMounted without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
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() == false then...
  /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 ==
Unknown which patch IsMounted() was added in.
IsMounted() was added in Patch 2.0.1
Anonymous user