# Fake agent

**URL:** <https://forums.unrealengine.com/t/fake-agent/1033711>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 15, 2023, 7:18pm UTC](https://forums.unrealengine.com/t/fake-agent/1033711 "2023-04-15T19:18:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codissius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Codissius](https://forums.unrealengine.com/u/Codissius)\
**Post date:** [April 15, 2023, 7:18pm UTC](https://forums.unrealengine.com/t/fake-agent/1033711/1 "2023-04-15T19:18:28Z")

</div>

I have doors that open with button interactions on my map, however as the player using the button is passed in, it seems to open the door away from them always. Is there a way to pass in a spoofed agent (like a prop placed in the editor thats considered an agent) to allow the door to open the specific way I would like it to?

---

<div class="post-metadata">

**Author:** ![wasti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wasti](https://forums.unrealengine.com/u/wasti)\
**Post date:** [April 15, 2023, 10:26pm UTC](https://forums.unrealengine.com/t/fake-agent/1033711/2 "2023-04-15T22:26:10Z")

</div>

I’ve used a switch as an in-between with success, example code is available here: [Verse - Automatic Sliding Door | Uefn Code Snippet](https://dev.epicgames.com/community/snippets/D08/fortnite-verse-automatic-sliding-door)

Just swap out the capture zone in the example with your button\_device.

---

<div class="post-metadata">

**Author:** ![Codissius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Codissius](https://forums.unrealengine.com/u/Codissius)\
**Post date:** [April 16, 2023, 9:16pm UTC](https://forums.unrealengine.com/t/fake-agent/1033711/3 "2023-04-16T21:16:04Z")

</div>

This seems pretty smart and useful for a custom sliding door, but it sadly doesn’t work in this instance. Thank you though! Essentially I am letting the user collect a key which opens a generic Fortnite door asset using a Lock Device. However when the LockDevice.Open() is triggered, the player agent has to be passed in and it always swings away from the position of the agent at that time. I would like to be able to pass in essentially a ‘fake agent’ so that the door swings a specific way.
