I have been trying to use the function float GetChallengeRating(object o). It works fine for NPCs, giving the toolset-rounded CR values I expect (A level 1 character of CR 0.66 in the toolset is rounded to CR=0.5, which is what the function returns).
However, trying to use the function on my PC consistently yields 0.000000, even after leveling the character to well past level 10.
What is up with this? Is there some other way I can get the CR of my PC via scripting?