WoW:API IsMounted: Difference between revisions
Jump to navigation
Jump to search
(New page: Checks to see if the player is mounted or not. == Arguments == None == Returns == 1 if the player is currently flying, nil otherwise == Example Code == mounted = IsMounted() If the...) |
m (→Returns: Seems someone copypasted from IsFlying(), Fixed.) |
||
Line 9: | Line 9: | ||
== Returns == | == Returns == | ||
1 if the player is currently | 1 if the player is currently mounted, nil otherwise | ||
== Example Code == | == Example Code == |
Revision as of 12:55, 15 June 2009
Checks to see if the player is mounted or not.
Arguments
None
Returns
1 if the player is currently mounted, nil otherwise
Example Code
mounted = IsMounted()
If the player is mounted then the value of mounted will be 1. However if the player is not mounted then mounted will have a value of nil. 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() == nil then...
In this case if the player is not mounted then the code after then will be excuted.
Details
Unknown which patch IsMounted() was added in.