Skip to content

4 ‐ Custom Behavior

requazar edited this page Jul 16, 2025 · 3 revisions

To create custom behavior, we first need to make a script file. While you can put this wherever you want inside your root directory, it's recommended to put it inside scripts/objects for organization. Inside the script file, there are a couple things you need to do before you write in your custom behavior:

  1. Copy and paste the code from SelectMenuCapsuleObject.hxc into your file.
  2. Change the name of your class from SelectMenuCapsuleObject to the name you have chosen. Please make sure the name of the file and the name of the class match.
  3. Scroll down to the custom behavior functions. They are blank functions that get called every time. Under no circumstances should these functions be deleted, as they are called even if empty and need to exist for the menu to function properly.
  4. Once you have added your custom behavior, go back to the json file for your capsule.
  5. If you have not done so already, add a script field to your json. It should be a string containing the name of your class.
Clone this wiki locally