When changing scripts in a mission folder and previewing the mission, the changes are not loaded by the game.
If the game was restarted and the mission previewed, the changes to the script are loaded.
Video showing the problem: https://www.youtube.com/watch?v=d9gvRpcpR1A