You’ll want a ; after a variable declaration, like this
;
var lengthOfTerrain = array_length(terrainPoints);
Eventually I’d like to rewrite the project indexer to be smarter, but that’s no small task.
Thank you, it works. Guess I will have to get used to using ';'.