> For the complete documentation index, see [llms.txt](https://docs.otherside.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherside.xyz/odk-docs/odk-plugin/visual-effects.md).

# Visual Effects

The ODK uses the `BPC_ODK_NiagaraEffectsManagerComponent` to play local and replicated effects on characters. The `BPMC_ODK_GucciTrailHandler` is an example showing how we add and remove effects to characters that own a Koda pendant NFT.

Inside `BPMC_ODK_GucciTrailHandler::TryApplyGucciTrailEffect`, we use the `BPC_ODK_NiagaraEffectsManagerComponent` to add the Gucci Niagara visual effect to both characters feet using `AddNiagaraEffect`. It's parameters are as follows:\
\
Niagara System - The Niagara system to add.\
Socket - The socket on the character mesh to attach the Niagara system to.\
Relative Transform - The transform which should be applied to the Niagara system relative to the socket. This lets you offset/rotate or scale the visual effect in relatioin to the defined socket.\
Is Persistant Effect - If true, the visual effect will play continuously until removed. If false, the effect will run once and then be automatically removed.\
Replicate - Should the effect be visable to other players as well.

<figure><img src="/files/J5GrDCfNDHEossNqnvWR" alt=""><figcaption></figcaption></figure>

`AddNiagaraEffect` returns an Id for the effect that should be used when attempting to remove the visual effect. An example of this can be seen inside `BPMC_ODK_GucciTrailHandler::RemoveGucciTrailEffect` where`RemoveNiagaraEffect` is called with the relevant EffectId.

<figure><img src="/files/s1uOR6eqkNnWpfaajJXl" alt=""><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:

```
GET https://docs.otherside.xyz/odk-docs/odk-plugin/visual-effects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
