Difference between revisions of "Debugging"
Jump to navigation
Jump to search
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. |