Quantcast How to check if player is "outside" (mounting possible) - WoWInterface
Thread Tools Display Modes
10-21-18, 09:51 AM   #1
LudiusMaximus
A Fallenroot Satyr
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 24
How to check if player is "outside" (mounting possible)

Is there a function to tell if the player is "inside" (where mounting is not possible) or "outside" (where mounting is possible)?

What I am really after is this: When the PLAYER_MOUNT_DISPLAY_CHANGED event is triggered and I check for (IsMounted() == false), I want to know if the player has been dismounted automatically for entering a building.

Thanks!
  Reply With Quote
10-21-18, 09:56 AM   #2
briskman3000
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 74
IsIndoors() returns true if inside false if outside - nil will be returned if "inside" but still able to mount

Conversely IsOutdoors() returns true if outdoors

Last edited by briskman3000 : 10-21-18 at 09:59 AM.
  Reply With Quote
10-21-18, 10:01 AM   #3
LudiusMaximus
A Fallenroot Satyr
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 24
Originally Posted by briskman3000 View Post
IsIndoors() returns true if inside false if outside - nil will be returned if "inside" but still able to mount

Conversely IsOutdoors() returns true if outdoors
Great, thanks!
Quite obvious, but with all my googling I was not able to find it...
  Reply With Quote
10-21-18, 10:04 AM   #4
briskman3000
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 74
Originally Posted by LudiusMaximus View Post
Great, thanks!
Quite obvious, but with all my googling I was not able to find it...
https://wow.gamepedia.com/World_of_Warcraft_API -- is a good starting place to look

https://www.townlong-yak.com/ -- another great resource (updated more often and has alot more things, but not as easy to navigate)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to check if player is "outside" (mounting possible)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off