# How to open the door?

The pack contains a door that works with a lock, but I will tell you the main points needed to create your own door.

![](https://737829330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fmarketplace-ue4-docs%2F-MTQeuaVIBn8V8U5HuuA%2F-MTQf-ZQR0H-P4mWfp2v%2F1.png?generation=1613224480488852\&alt=media)

1. Create a variable
2. Call it for example “***Padlock Ref***”, make it “***Instance Editable***” for this you need to click on the eye to the right of the variable name
3. Set the type of the variable, in our case “***BP\_Lock***”
4. In **Begin Play**, subscribe to the Event “***OnSuccessPassword\_Disp***” (or you can subscribe elsewhere according to your logic)
5. And finally, the code that will open the door, in my case, I just turn on the physics.


---

# 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://hichigo.gitbook.io/padlock/settings/how-to-open-the-door.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.
