WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   How to check if player is "outside" (mounting possible) (https://www.wowinterface.com/forums/showthread.php?t=56795)

LudiusMaximus 10-21-18 09:51 AM

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!

briskman3000 10-21-18 09:56 AM

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

LudiusMaximus 10-21-18 10:01 AM

Quote:

Originally Posted by briskman3000 (Post 330537)
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...

briskman3000 10-21-18 10:04 AM

Quote:

Originally Posted by LudiusMaximus (Post 330538)
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)


All times are GMT -6. The time now is 10:29 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI