Howdy,
I'm looking to move the camera to a spawn point when it passes a threshold height. I'm capable of this with JavaScript but not Blockly (examples below). In my
test space, I'm working on doing this when the camera moves above the man.
Any thoughts on implementation for Blockly would be great. Thanks!
Blockly: Producing Error "Maximum call stack size exceeded" (I believe this is stemming from wrapping the "if position, then move" within an infinite loop, but not sure how else to accomplish this without an event)

JavaScript: Working
var camera = Scene.getItem("NLiJADMFTY");
var man = Scene.getItem("z4KFcETiFZ");
var spawnPosition = Scene.getItem("67COX9XawK").getPosition();
Scene.scheduleRepeating(function() {
if (camera.getPosition().z >= man.getPosition().z) {
camera.moveLinear(spawnPosition.x, spawnPosition.y, spawnPosition.z, .001);
}
}, 1);
Thanks again,
Sean