> For the complete documentation index, see [llms.txt](https://docs.fullscreen.no/info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fullscreen.no/info/game-creator-2-assets/herobridge/instructions/set-expression.md).

# Set Expression

The **Set Expression** instruction allows you to change the **facial blendshape** of a character.

For example, you can make your character look **in pain** when taking damage by triggering this instruction on an **Attribute Change** trigger, or make them look **happy** during dialogue.

***Expressions** are exported during **cache generation** from the **runtime facial demo animation controller** included in the **FREE Starter Pack - S***~~***i***~~***dekick Modular Characters** asset*

### Inside the Instruction

#### Sidekick Character

The character to apply the facial expression to.

#### Expression

Select which facial expression to apply.\
There are **over 19 expressions** available, including:

* In Pain
* Happy
* Sad
* Angry
* Surprised
* Neutral\
  …and more

#### Transition

Defines how smoothly the expression changes.\
Enter a **transition duration** (in seconds).

If the **Transition** value is greater than **0**, additional options appear:

* **Easing:** Choose how the blendshape transitions (e.g., Linear, Ease In, Ease Out).
* **Time Mode:** Select whether to use **Game Time** or **Unscaled Time** for the transition.
* **Wait to Complete:** When enabled, the instruction **waits until the transition finishes** before continuing to the next instruction in your sequence.

***

### **Example Use Case**

You can make your character look **in pain** when taking damage using an **On Attribute Change** trigger.

For example:

1. Create a **Trigger** with **On Attribute Change (HP)** as the event.
2. Inside the trigger, add the **Set Expression** instruction.
3. Assign your **Sidekick Character** and choose the **“In Pain”** expression.
4. (Optional) Add a short **Transition** time (like 1.2s) for a smoother, natural reaction.

Now, whenever the character loses HP, their facial expression will change to show pain.

<figure><img src="/files/hiHghmR0Ej8f5aUCfjph" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fullscreen.no/info/game-creator-2-assets/herobridge/instructions/set-expression.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
