Cloning a FUNCTION


🧬 Function Cloning

This is where things start to get really interesting...

Function cloning gives you the ultimate power to save time — especially in projects with many buttons and repeated actions.


🧠 What Is Function Cloning?

It’s the process of duplicating an existing function, copying all its settings (actions, parameters, logic), and applying that copy to another button or function.

📌 Classic Scenario:

You have a HUD with 20 buttons, each applying different textures to the same face/link on a shirt.

Without cloning:

  • You’d have to manually configure each button from scratch.

  • Even for an experienced user, this would take 15 to 20 minutes.

With function cloning + the Assets system:

  • You fully configure just one button.

  • Then clone that function to the other 19.

  • Just change the Asset (texture) for each one.

  • Total time? 5 minutes or less.

💡 Learn how Assets can speed up your workflow.


⚙️ How to Clone a Function

  1. First, fully configure one button with all the actions you want.

    • Remember: each button is a function.

  2. In the creation panel, click the yellow button with the two-paper icon (📄📄), which represents function cloning.

  3. A menu will appear with two options:

    • Manually enter a name for the new function.

    • Select another existing button from the list to paste the copy directly into it.

  4. Example:

    • You’ve configured button_1.

    • Now you can clone that function into button_2, button_3, and so on.

✅ All the logic from the original button will be automatically cloned. You only need to change the asset (like the texture), and the button is ready to go!


⚡ Why Is This So Powerful?

  • Saves time

  • Avoids repetition

  • Maintains consistency

  • Simplifies bulk updates

With the combo of Assets + Cloning, building large HUDs becomes fast, modular, and smart.


Last updated