Tiziano74 Posted December 7, 2024 Share Posted December 7, 2024 Hi everyone! I'm looking for a way to identify via script if a specific weapon (or object) is physically present in a room, to make it disappear with the enable() Can someone suggest a way? Thanks in advance as always to those who will answer! Link to comment Share on other sites More sharing options...
dylbill Posted December 7, 2024 Share Posted December 7, 2024 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts