Add indoors/outdoors conditionals via ClassicAPI

This commit is contained in:
Brues
2026-07-30 19:59:50 -05:00
parent 66d5f0c618
commit a2db3ebd42
3 changed files with 37 additions and 0 deletions
+12
View File
@@ -337,6 +337,18 @@ function API.IsMounted()
return IsMounted() and true or false
end
-- True if the player is under a WMO roof (building, cave, instance interior).
-- Live engine geometry query, not zone-based; nil (-> false) pre-world.
function API.IsIndoors()
return IsIndoors() and true or false
end
-- True if the player is outdoors (open sky / not inside a WMO interior).
-- Exact complement of IsIndoors for a resolvable player.
function API.IsOutdoors()
return IsOutdoors() and true or false
end
-- Player's stand state: 0 = standing, non-zero = sitting/sleeping/kneeling/etc.
-- (see UnitStandState). Player-only.
function API.GetPlayerStandState()