Difference between revisions of "Debug Scripts"
Jump to navigation
Jump to search
no edit summary
imported>AdiBeiElderScrolls |
imported>AdiBeiElderScrolls |
||
|
Object scripts may run every frame, but they also may not execute for quite a while, if player is not near. Even there are cases, where AI packages prevent script running. This is true for Follow-Packages if they check on conditions related to script variables in the same object.
To find out, if your script is executed, simply put a code
<pre>; use long, if you want to watch the frames
'''Take care''', if you use [[Message]] or [[MessageBox]] functions inside of your script!
The delay of the [[Message]] function will cause, that the displayed values are not the current ones. Moreover, the first time every message is executed in the script, it will be delayed. Every further execution (next frame) leads to messages running at the top of screen to fast to follow. To make sure, that you can watch all messages for every frame, use
But always keep in mind, that the values shown in the message, are '''NOT''' the current values.
| |||