# Verse

**URL:** https://forums.unrealengine.com/c/development-discussion/programming-scripting/verse/196.md?page=18

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 19

---

## [Getting an agent when the HitEvent from a shooting\_range\_target\_device is triggered](https://forums.unrealengine.com/t/getting-an-agent-when-the-hitevent-from-a-shooting-range-target-device-is-triggered/1909135)

<div class="topic-metadata">

**Author:** [@electro.walker](https://forums.unrealengine.com/u/electro.walker)\
**Replies:** 6\
**Last updated:** [October 19, 2024, 8:30am UTC](https://forums.unrealengine.com/t/getting-an-agent-when-the-hitevent-from-a-shooting-range-target-device-is-triggered/1909135 "2024-10-19T08:30:10Z")

</div>

Does anybody know how to get the agent who triggered the HitEvent from a shooting\_range\_target\_device ? Or at least, how to know which of the player hit or shot on a target ?

---

## [UEFN - set character to fly](https://forums.unrealengine.com/t/uefn-set-character-to-fly/2065235)

<div class="topic-metadata">

**Author:** [@schmigel](https://forums.unrealengine.com/u/schmigel)\
**Replies:** 6\
**Last updated:** [October 18, 2024, 4:51pm UTC](https://forums.unrealengine.com/t/uefn-set-character-to-fly/2065235 "2024-10-18T16:51:33Z")

</div>

Hi! There is a isflying method for the fortnite character. However, how to set the character to fly? Is this possible through verse or devices? # Succeeds if this \`fort\_character\` is in flying locomotion state.…

---

## [Failabiity of map/weak map mutation](https://forums.unrealengine.com/t/failabiity-of-map-weak-map-mutation/2073007)

<div class="topic-metadata">

**Author:** [@Ag3ntD](https://forums.unrealengine.com/u/Ag3ntD)\
**Replies:** 3\
**Last updated:** [October 18, 2024, 3:16pm UTC](https://forums.unrealengine.com/t/failabiity-of-map-weak-map-mutation/2073007 "2024-10-18T15:16:55Z")

</div>

Hi, The documentation at Adding and Modifying Elements in a Map helpfully shows the syntax for changing a value in a map or adding a new value. It also explains that these expressions can fail, and so must be in a fail…

---

## [How do i do this](https://forums.unrealengine.com/t/how-do-i-do-this/2072490)

<div class="topic-metadata">

**Author:** [@Mowntaindew](https://forums.unrealengine.com/u/Mowntaindew)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 9:14am UTC](https://forums.unrealengine.com/t/how-do-i-do-this/2072490 "2024-10-18T09:14:40Z")

</div>

Guys i have a map and i want to get score points for every second you hold an item i dont how how since i am new to verse and i still learning it could someone help

---

## [Can I attach a guard that has spawned by guard spawner onto player?](https://forums.unrealengine.com/t/can-i-attach-a-guard-that-has-spawned-by-guard-spawner-onto-player/2072190)

<div class="topic-metadata">

**Author:** [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Replies:** 1\
**Last updated:** [October 18, 2024, 7:33am UTC](https://forums.unrealengine.com/t/can-i-attach-a-guard-that-has-spawned-by-guard-spawner-onto-player/2072190 "2024-10-18T07:33:24Z")

</div>

Same as title. I want to attach the guard spawned by spawner to player. And every single frame player move, the guard still attached to him. How do you do?

---

## [What is the different between these variables?](https://forums.unrealengine.com/t/what-is-the-different-between-these-variables/2072550)

<div class="topic-metadata">

**Author:** [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Replies:** 3\
**Last updated:** [October 18, 2024, 7:30am UTC](https://forums.unrealengine.com/t/what-is-the-different-between-these-variables/2072550 "2024-10-18T07:30:36Z")

</div>

One of them is normal, and the other is public. But both can be called from other verse class. Is there any reason I should use public command for that?

---

## [Audio Device not playing any sounds ? (Verse)](https://forums.unrealengine.com/t/audio-device-not-playing-any-sounds-verse/1798043)

<div class="topic-metadata">

**Author:** [@MoshiKiwi](https://forums.unrealengine.com/u/MoshiKiwi)\
**Replies:** 1\
**Last updated:** [October 17, 2024, 6:49pm UTC](https://forums.unrealengine.com/t/audio-device-not-playing-any-sounds-verse/1798043 "2024-10-17T18:49:06Z")

</div>

Hey there, Recently made a cool little UI, i know how important sound cues can be to make everything feel more reactive. As such, i tried to add a sound being played whenever my button is clicked. To ensure not everyo…

---

## [Trying to make a pet or companion](https://forums.unrealengine.com/t/trying-to-make-a-pet-or-companion/2072737)

<div class="topic-metadata">

**Author:** [@Kaiju\_9](https://forums.unrealengine.com/u/Kaiju_9)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 2:14pm UTC](https://forums.unrealengine.com/t/trying-to-make-a-pet-or-companion/2072737 "2024-10-17T14:14:21Z")

</div>

Quick question, i am using UEFN, and trying to learn verse, but i am following tutorials as well trying to understand the language, iam not really that good at coding, but i am wondering if its possible if i can like cod…

---

## [How do you use a variable from other class?](https://forums.unrealengine.com/t/how-do-you-use-a-variable-from-other-class/2072266)

<div class="topic-metadata">

**Author:** [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Replies:** 6\
**Last updated:** [October 17, 2024, 10:20am UTC](https://forums.unrealengine.com/t/how-do-you-use-a-variable-from-other-class/2072266 "2024-10-17T10:20:31Z")

</div>

I want to use variables that is from custom\_player into game\_manager verse. Is there a way to find out?

---

## [Is there a way to get nearest transform of creatures or something?](https://forums.unrealengine.com/t/is-there-a-way-to-get-nearest-transform-of-creatures-or-something/2072116)

<div class="topic-metadata">

**Author:** [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Replies:** 2\
**Last updated:** [October 17, 2024, 7:28am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-nearest-transform-of-creatures-or-something/2072116 "2024-10-17T07:28:35Z")

</div>

I want to know the nearest creature’s transform from player! How can I get that?

---

## [How do I check in verse if a capture area device changed its control?](https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831)

<div class="topic-metadata">

**Author:** [@LarYye](https://forums.unrealengine.com/u/LarYye)\
**Replies:** 1\
**Last updated:** [October 17, 2024, 12:35am UTC](https://forums.unrealengine.com/t/how-do-i-check-in-verse-if-a-capture-area-device-changed-its-control/2071831 "2024-10-17T00:35:04Z")

</div>

I’m new to this, all I did until now was to subscribe using the ControlChangeEvent, but I do not know how to actually check it on an if statement OnBegin():void= capAreaD.ControlChangeEvent.Subscribe(OnControlChange) …

---

## [Set up the HUD for each player](https://forums.unrealengine.com/t/set-up-the-hud-for-each-player/2071580)

<div class="topic-metadata">

**Author:** [@E-Sportvertrag](https://forums.unrealengine.com/u/E-Sportvertrag)\
**Replies:** 0\
**Last updated:** [October 16, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/set-up-the-hud-for-each-player/2071580 "2024-10-16T18:19:31Z")

</div>

The timer is only shown to one player if there are several players in a round. What can I do to give every player in the round a timer? HandlerTimer(Player : player)\<suspends\> : void = if (PlayerUI := GetPlayerU…

---

## [Can we make a map an @editable? in the docs it mentions it](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771)

<div class="topic-metadata">

**Author:** [@PhoeNyxTopG](https://forums.unrealengine.com/u/PhoeNyxTopG)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 9:14am UTC](https://forums.unrealengine.com/t/can-we-make-a-map-an-editable-in-the-docs-it-mentions-it/2065771 "2024-10-16T09:14:42Z")

</div>

can we make make a map{} @editable like an array? i tried but i get compilation errors, in the docs it references it: Editable Properties | Unreal Editor for Fortnite Documentation | Epic Developer Community Currently, …

---

## [NPC Spawner Bug](https://forums.unrealengine.com/t/npc-spawner-bug/2068449)

<div class="topic-metadata">

**Author:** [@lantram](https://forums.unrealengine.com/u/lantram)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 7:45pm UTC](https://forums.unrealengine.com/t/npc-spawner-bug/2068449 "2024-10-14T19:45:07Z")

</div>

Post deleted by author. Issue was caused by ‘user error’.

---

## [Array length](https://forums.unrealengine.com/t/array-length/2068530)

<div class="topic-metadata">

**Author:** [@Gustavo9](https://forums.unrealengine.com/u/Gustavo9)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 10:50pm UTC](https://forums.unrealengine.com/t/array-length/2068530 "2024-10-14T22:50:31Z")

</div>

Does anyone knows if there’s any limit to array length in verse?

---

## [Why can't a failure context have an else clause?](https://forums.unrealengine.com/t/why-cant-a-failure-context-have-an-else-clause/2066861)

<div class="topic-metadata">

**Author:** [@mobifruit](https://forums.unrealengine.com/u/mobifruit)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 8:02am UTC](https://forums.unrealengine.com/t/why-cant-a-failure-context-have-an-else-clause/2066861 "2024-10-14T08:02:08Z")

</div>

While experimenting with Lesson 9 of “Learn the Basics of Writing Code in Verse” the following got me wondering: Why isn’t it possible in Verse to write an else clause for a so-called failure context? if: …

---

## [any verse code i try to put in project i get the same error and when i remove the verse code its works normally](https://forums.unrealengine.com/t/any-verse-code-i-try-to-put-in-project-i-get-the-same-error-and-when-i-remove-the-verse-code-its-works-normally/2064415)

<div class="topic-metadata">

**Author:** [@TIKTOKlilreem0](https://forums.unrealengine.com/u/TIKTOKlilreem0)\
**Replies:** 0\
**Last updated:** [October 12, 2024, 3:55am UTC](https://forums.unrealengine.com/t/any-verse-code-i-try-to-put-in-project-i-get-the-same-error-and-when-i-remove-the-verse-code-its-works-normally/2064415 "2024-10-12T03:55:29Z")

</div>

---

## [What is wrong in this verse script i tried everything](https://forums.unrealengine.com/t/what-is-wrong-in-this-verse-script-i-tried-everything/2063731)

<div class="topic-metadata">

**Author:** [@Mowntaindew](https://forums.unrealengine.com/u/Mowntaindew)\
**Replies:** 15\
**Last updated:** [October 11, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/what-is-wrong-in-this-verse-script-i-tried-everything/2063731 "2024-10-11T18:40:23Z")

</div>

Persistent modifier to keep the state across games persistent A simple test class class SimpleTestClass extends device { # A simple variable var testVariable: int = 0 # Initialize variable # A simple function to log…

---

## [Asset diggest deleting on compilation](https://forums.unrealengine.com/t/asset-diggest-deleting-on-compilation/2054560)

<div class="topic-metadata">

**Author:** [@GTOslo](https://forums.unrealengine.com/u/GTOslo)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 10:51pm UTC](https://forums.unrealengine.com/t/asset-diggest-deleting-on-compilation/2054560 "2024-10-08T22:51:42Z")

</div>

My assets digest keep deleting when I compile after publishing my map, i don’t know how to fix that, i verified the files on both UE and FN , named the file containing my project the same as the project name itself, i do…

---

## [LogValkyrieBeacon: Error: (ValkyrieBeaconClient\_0) AValkyrieBeaconClient::ClientVerseUploadComplete\_Implementation Verse Hot-Reload failed (error code: 6)](https://forums.unrealengine.com/t/logvalkyriebeacon-error-valkyriebeaconclient-0-avalkyriebeaconclient-clientverseuploadcomplete-implementation-verse-hot-reload-failed-error-code-6/1233324)

<div class="topic-metadata">

**Author:** [@PonyPonyChimpan](https://forums.unrealengine.com/u/PonyPonyChimpan)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 6:26pm UTC](https://forums.unrealengine.com/t/logvalkyriebeacon-error-valkyriebeaconclient-0-avalkyriebeaconclient-clientverseuploadcomplete-implementation-verse-hot-reload-failed-error-code-6/1233324 "2024-10-08T18:26:04Z")

</div>

I am currently building a game using VERSE, and this morning when I started up UEFN to work on it, built the VERSE file as usual, and started the session, VERSE did not work. When I looked at the OutputLog, I saw an err…

---

## [I need help on my map](https://forums.unrealengine.com/t/i-need-help-on-my-map/2058758)

<div class="topic-metadata">

**Author:** [@MancakeThemenace](https://forums.unrealengine.com/u/MancakeThemenace)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/i-need-help-on-my-map/2058758 "2024-10-08T14:34:11Z")

</div>

i need help creatinga fortnite creative map i am new i want to make a tornado game where your in a map where tornados chase you and you have to survive but i need help with decorating and coding in the tornado i need it …

---

## [What does Player.IsActive\[\] function?](https://forums.unrealengine.com/t/what-does-player-isactive-function/2056106)

<div class="topic-metadata">

**Author:** [@davidpkami](https://forums.unrealengine.com/u/davidpkami)\
**Replies:** 1\
**Last updated:** [October 6, 2024, 5:42pm UTC](https://forums.unrealengine.com/t/what-does-player-isactive-function/2056106 "2024-10-06T17:42:21Z")

</div>

When it fails? When the player is death or not in the match?

---

## [Can someone please help me fix my verse code?](https://forums.unrealengine.com/t/can-someone-please-help-me-fix-my-verse-code/2055392)

<div class="topic-metadata">

**Author:** [@SonicGamez2](https://forums.unrealengine.com/u/SonicGamez2)\
**Replies:** 0\
**Last updated:** [October 6, 2024, 5:50am UTC](https://forums.unrealengine.com/t/can-someone-please-help-me-fix-my-verse-code/2055392 "2024-10-06T05:50:38Z")

</div>

So I’m trying to make a verse code that is only attaching props and devices to ONE player when they pick up a Vfx powerup. but when I tested it with multiple people it attached to all of them and was very glitchy and mov…

---

## [Can someone help me add a break to my verse code loop?](https://forums.unrealengine.com/t/can-someone-help-me-add-a-break-to-my-verse-code-loop/2052075)

<div class="topic-metadata">

**Author:** [@SonicGamez2](https://forums.unrealengine.com/u/SonicGamez2)\
**Replies:** 2\
**Last updated:** [October 5, 2024, 7:55pm UTC](https://forums.unrealengine.com/t/can-someone-help-me-add-a-break-to-my-verse-code-loop/2052075 "2024-10-05T19:55:12Z")

</div>

I want to make this verse code loop break when a player enters the mutator zone device and also when the explosive device has exploded. but a can’t figure it out at all. using { /Fortnite.com/Devices } using { /Verse.o…

---

## [How to check exact type of Guard?](https://forums.unrealengine.com/t/how-to-check-exact-type-of-guard/2053110)

<div class="topic-metadata">

**Author:** [@veshalololo1](https://forums.unrealengine.com/u/veshalololo1)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 3:42pm UTC](https://forums.unrealengine.com/t/how-to-check-exact-type-of-guard/2053110 "2024-10-04T15:42:16Z")

</div>

I want to have different behaviuor depending on type of eliminated guards. For example, I have Shadow Guard, Ghost Guard and Grotto Guard. I have a function like: OnGuardCompletedPath(Agent:agent):void. I want to make s…

---

## [How to calculate screen coordinates of a character ?](https://forums.unrealengine.com/t/how-to-calculate-screen-coordinates-of-a-character/2049835)

<div class="topic-metadata">

**Author:** [@GMG\_ES](https://forums.unrealengine.com/u/GMG_ES)\
**Replies:** 4\
**Last updated:** [October 3, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/how-to-calculate-screen-coordinates-of-a-character/2049835 "2024-10-03T16:08:09Z")

</div>

Hello, I’m trying to implement damage indicators for my game in UEFN . I want a ui text to pop out when I damage an enemy, above such enemy. To do that I think I need to calculate the on-screen position of the enemy c…

---

## [how to fix this problem in code](https://forums.unrealengine.com/t/how-to-fix-this-problem-in-code/2048914)

<div class="topic-metadata">

**Author:** [@BamIsRich](https://forums.unrealengine.com/u/BamIsRich)\
**Replies:** 2\
**Last updated:** [October 3, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-fix-this-problem-in-code/2048914 "2024-10-03T13:05:06Z")

</div>

can someone please help me fix this coding problem

---

## [Assigning Canvas Panel causes session to crash](https://forums.unrealengine.com/t/assigning-canvas-panel-causes-session-to-crash/2049834)

<div class="topic-metadata">

**Author:** [@TwitchBarrybee](https://forums.unrealengine.com/u/TwitchBarrybee)\
**Replies:** 1\
**Last updated:** [October 2, 2024, 6:29pm UTC](https://forums.unrealengine.com/t/assigning-canvas-panel-causes-session-to-crash/2049834 "2024-10-02T18:29:54Z")

</div>

Hey, this is my first time writing a Question here, I would usually be able to overcome any verse Issues I have in the official UEFN discord verse channel, or asking other creators. The issue I’m having is when I assign…

---

## [Create a gameplay on same area but different event for different player](https://forums.unrealengine.com/t/create-a-gameplay-on-same-area-but-different-event-for-different-player/2016611)

<div class="topic-metadata">

**Author:** [@rizalea](https://forums.unrealengine.com/u/rizalea)\
**Replies:** 5\
**Last updated:** [October 2, 2024, 9:49am UTC](https://forums.unrealengine.com/t/create-a-gameplay-on-same-area-but-different-event-for-different-player/2016611 "2024-10-02T09:49:57Z")

</div>

Hello, I want to create one quiz map, have 1 board that show the question and answer options, but I want to 4 players playing together trying to answer the quiz on the same place and view the same board, but for each pla…

---

## [How I do correctly fix this Verse Code? Error "if"](https://forums.unrealengine.com/t/how-i-do-correctly-fix-this-verse-code-error-if/2048526)

<div class="topic-metadata">

**Author:** [@Darkoic](https://forums.unrealengine.com/u/Darkoic)\
**Replies:** 3\
**Last updated:** [October 2, 2024, 6:41am UTC](https://forums.unrealengine.com/t/how-i-do-correctly-fix-this-verse-code-error-if/2048526 "2024-10-02T06:41:03Z")

</div>

I was following a tutorial on YouTube, and left out and changed some of the code to fit my needs on what the creative prop is suppose to do. On the video the person never got an error like this. I did some research and t…

[Previous page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/verse/196.md?page=17)

[Next page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/verse/196.md?page=19)
