# Unlock Event

### What happens **when the code is valid?**

{% hint style="info" %}

1. Click the **+** icon in the bottom right, it will add a new event and you can place any gameobject which may have a script with a public method you want to call.
2. In this case I have added the colliders that need to be adjusted so you can interact with objects inside
3. You can then run this code each time you unlock something, this can be changed on each door, and multiple events can happen in each
   {% endhint %}

### Event Example

{% hint style="info" %}
In the example below you can see the event happens and adjusts colliders

1. Disable **Safe Black - Model Box Collider** (This was just used for interaction)
2. Enable a set of individual colliders that act as the skeleton to this asset (So we can interact with items inside)
3. Enable any objects that should appear inside the safe
   {% endhint %}

<figure><img src="/files/6WeqUrdotwWGJq5HbWZg" alt=""><figcaption></figcaption></figure>


---

# 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://speedtutoruk.gitbook.io/safe-system-doc/support/unlock-event.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.
