> For the complete documentation index, see [llms.txt](https://sunfish-studios.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunfish-studios.gitbook.io/main/vehicle/secondary-components/event-system.md).

# Event System

### FEvent

FEvent is an extension class of **MEvent**, created to tranfer FishData while taking full advantage of Malbers Event System please refer to [**Malbers Official Documentation**](https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/mevents) to get more in deep info.

You can use whenever you need to pass FishData from one system to another, a example of use is when you catch a fish we send his info to [Fishing UI Controller](/main/vehicle/secondary-components/fishing-ui-controller.md).

To Create a new Fishing Event go to Create -> Malbers Animations -> Fishing -> FishEvent

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

A Fish Event looks exactly like a [Malbers Event](https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/mevents), with the same debug options.

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

{% hint style="danger" %}
Important: Some events are called inside the Animator, for those the Find Invokers button will not work. I'm adding a note on those events to make more clear where they exist. You can also click on the Debug button (Bug Icon on top left corner), with the debug on you can see where the event is being called and by wich script.
{% endhint %}

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

<figure><img src="/files/OMadejZkK3moNKyLzpRq" alt="" width="534"><figcaption></figcaption></figure>

### FEventListener

Extension of [**Malbers MEventListener**](https://malbersanimations.gitbook.io/animal-controller/scriptable-architecture/scriptables/mevent-listener) with the extra capabilites to listen to FEvent that will receive FishData.<br>

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

Use the new container to Link FishEvents


---

# 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://sunfish-studios.gitbook.io/main/vehicle/secondary-components/event-system.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.
