Jump to content

[Skyrim SE] Detect a specific object in the room and disable it


Tiziano74

Recommended Posts

You can try something like this: 

Function disableObject(form akBaseObject)
    ObjectReference ref = Game.FindClosestReferenceOfTypeFromRef(akBaseObject, Game.GetPlayer(), 9000.0)
    if ref ;reference was found
        ref.disable()
    Endif
Endfunction
  • Thanks 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...