# redEvent

## Description

Dispatched throughout game session to trigger gameplay logic, for various purposes:

* combat
* traffic
* ...

Event can be dispatched in-game on instances of class inheriting from \[Entity].

More info and code snippets [there](https://cyb3rpsych0s1s.github.io/4ddicted/patterns/events.html#event-inherited-from-red-event).

If you're looking to dispatch events outside of game sessions, see [wiki of Codeware](https://github.com/psiberx/cp2077-codeware/wiki#custom-events) for custom events.


---

# Agent Instructions: 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://wiki.redmodding.org/nativedb-documentation/classes/redevent.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.
