// Move this SceneObject up every frame with a speed of 5 units per second vartransform = script.getTransform(); varevent = script.createEvent("UpdateEvent"); event.bind(function (eventData) { varpos = transform.getLocalPosition(); pos.y += eventData.getDeltaTime() * 5.0; transform.setLocalPosition(pos); });
Triggered every frame.
Example