Difference between revisions of "Debugging"

1 byte added ,  12:47, 17 December 2008
m
"getdistance player >0" CHANGED TO "getdistance player > 0"
imported>Wrye
m (Remove top level header.)
imported>P.lo
m ("getdistance player >0" CHANGED TO "getdistance player > 0")
 
Line 39: Line 39:
When called in a scripteffect spell, the statement sometimes evaluates true for the player. The easiest solution is to add another condition to double-check it, such as:
When called in a scripteffect spell, the statement sometimes evaluates true for the player. The easiest solution is to add another condition to double-check it, such as:


   getdistance player >0
   getdistance player > 0


However, [[getDistance]] is unreliable if the player is swimming.
However, [[getDistance]] is unreliable if the player is swimming.
Anonymous user