ObjectIsOutdoors

Check if a WowGameObject is outside (AKA not in a cave).

ObjectIsOutdoors(--[[(1)]]objectReference) : boolean
  1. See Object Reference for more information on possible values.

Example

Check if an object is outside.

local isoutside = ObjectIsOutdoors('target')
if isoutside then
print("OMG The sun")
end