Oh sorry, didn't expect such a quick reply! Thanks alot, I had no idea all those commands existed, especially GetDetected which was tricky to find. Now, to the difficult task of integrating this into my script... And also, you are the man!
I would also really like to know this. Google doesn't give any hits and the creation kit wiki describes how stealth is measured but doesn't give a single command for it... I got somewhat of an idea, which was that crime should have some sort of detection script, since crime isn't registered if you're not witnessed. But the crime page doesn't give many commands either... Will try to read some crimescripts in the ckit. If I find something I'll let you know. Also if you find anything, please let me know. (¤_¤)