# Firing events from the editor

You don’t always need to use code to fire an event. Because it is a Scriptable Object, you can call it from the editor. If you select the prefab\_enemy\_event, you can see that the event example\_onEnemyHitPlayer is raised directly from a unity event.  &#x20;

!\[Text

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXdn1NRqb_xZYfNdsaSnC5gU5p4tCuMlNGP-CS_ufvtr19CxAHEnSmOGBnU6fko1EKYsabSU2HVV2PHhZI9brEf5Nc8h6bBlV7wgFYN9m_wIrhZOkZH8j4wTdR8sscJblveX3abGlErS51Q8fJagxgwZAjQ?key=npvPcHMgF_O4Om_5f5S8Bw>)

!\[Graphical user interface, application

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXekbbzoT7thF2jmwieks4pzLVPtafTScwpLOetiMWb0m_kEnTQ4bpjcgUKpkuZUPJA549w17GVclJPcv6Z6MDWIAX56elWcRaPVh_92Xn_SB06D8efno0yzrmFAIQryzumH2qIRAp_juNLB_k1Xl8X_ruM?key=npvPcHMgF_O4Om_5f5S8Bw>)

There is an EventListenerInt on the prefab\_player that listens to it. &#x20;

!\[Graphical user interface, text, application

Description automatically generated]\(<https://lh7-rt.googleusercontent.com/docsz/AD_4nXclMbPdq22cBNg8FCLWBCU9OncLg8gMIo9QBP6VmFcgPaqkqLZQzDty7WgM6jAx1Nis7xJMLHiMSRTiiMDwMB96G2OFqoy4Tp3gzWzVgH689VdGJ6pLg180LkO9P3oo_JHiNh_1K6nEJFa0qNqGCbaG_-bK?key=npvPcHMgF_O4Om_5f5S8Bw)&#x20>;


---

# 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://obvious-game.gitbook.io/soap/scene-documentation/4_scriptableevents/firing-events-from-the-editor.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.
