Background for Skyrim SE
Member of the ObjectReference script
boolfunctionIsMapMarkerVisible()Native

Description

Wiki Description

Checks if this map marker is visible to the player.

Documentation Comment

Is the map marker visible?


Caveats

CK Wiki - Notes

  • This function only returns if the map marker is visible or not. If you want to know if a location is visible and already discovered, use GetMapMarkerVisible.
  • Checking if a location is discovered, requires both this and ObjectReference.CanFastTravelToMarker(). If you wish to avoid a scripted method, the above will suffice.

Examples

; Is the Riverwood map marker visible to the player?
bool isMarkerVisible = RiverwoodMarkerObjectRef.IsMapMarkerVisible()
; Is this location discovered?
Bool Function IsLocationDiscovered(ObjectReference akMapMarker)
; Returns true if the location's map marker is visible and
; can be fast traveled to, indicating it has been discovered.

if (akMapMarker.IsMapMarkerVisible() == TRUE && akMapMarker.CanFastTravelToMarker() == TRUE)
    return true
else
    return false
endif
EndFunction

Auto-Generated Example

bool returnedValue = myObjectReference__toCallFunctionOn.IsMapMarkerVisible()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.