How to Move an Object down until a certain point then activate a function

I want to move an object downward, then when it reaches a certain point, I want to activate a function of code but I am having a lot of trouble.

Here’s how you would do exactly what you asked. Just change “CERTAINPOINT” to how far down you want the object to go.

void Update () {
    if (position.y < CERTAINPOINT)

void doFunction() {
    // do stuff here

If you want more advanced functionality, you’ll have to be more specific. There are tons, and tons of ways to do what you want depending on how you want it done (if that makes any sense!).