Yeah, you're right. The timer actually redundant as I commented the first line and nothing happen, the code still works like what I expected. I don't quite understand your point with the "intersect" though, the original code was for making a list of object under the mouse cursor, hence return the array of objects like what…
What is the purpose of the timer - to execute the script each second/milisecond? The problem with your code is that "intersect" always returns an array of objects. If you have several objects one after another, for example Teapot003 is in front of Teapot001, whics is in front of Teapot005, which is in front of Teapot002,…
Hello guys, using the above code somehow works but I just found out that it actually detect a hidden object as well..is there anyway to treat hidden object as none or undefined? so that the code see nothing when the object is hidden? I want to make an if statement but have no idea what should I check as an if condition...
Hello miauu, I did looked into that script before but it's just too complected for my eyes =_=" too many scripting "vocabulary" that I have no idea what it does. But instead I google some more and found this guy's maxscript snippet and I implement to mine and out of surprise it works!( local theTimer = dotNetObject…