How to change the animation
Last updated
Last updated
Integrating an animation into your script involves two simple steps. First, add the animation details to the config.animationList property (see the section highlighted in red in the image below). Next, apply the newly added animation within the config.animations section (indicated in green in the image).
Step 1: Use the template below to create your new animation. In this template, the part labeled "talkWithProp"
represents the name of your animation. You'll refer to this name later in the config.animations section.
Step 2: Customize the remaining parts of the template—adjust the animation and prop settings as needed.
Step 3: Once you’ve tailored the code to your requirements, insert your updated code snippet into the config.animationList.
This approach ensures that your new animation is properly defined and seamlessly integrated into your script configuration.
To incorporate your custom animation into the script, you’ll need to adjust the settings in the config.animations section. There are three main areas you can modify:
openUi: The animation played when the UI opens.
talk: The animation triggered when you press the talk button.
talkClothe: A specialized talk animation that adapts based on the outfit you are wearing.
Steps to Use Your Custom Animation:
Select the Desired Section: Choose where you want your animation to play (e.g., openUi, talk, or talkClothe).
Update the Settings: In the chosen section, change the settings as follows:
Set anim
to config.animationList.My_Custom_ANIM_LIST_NAME.anim
Set prop
to config.animationList.My_Custom_ANIM_LIST_NAME.prop
Reference Your Custom Animation: The key here is to point to your newly created animation in the config.animationList. Modify the settings to:
config.animationList.My_Custom_ANIM_LIST_NAME.anim
config.animationList.My_Custom_ANIM_LIST_NAME.prop
Replace My_Custom_ANIM_LIST_NAME with the actual name of your custom animation.
Example: If your animation is named coolTalk, update it as follows:
config.animationList.coolTalk.anim
config.animationList.coolTalk.prop
This approach ensures that your custom animation is properly referenced and executed in the appropriate section of your script configuration.