# Verse

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

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

**Page:** 15

---

## [How to pass a function (not a result) as a member of an array](https://forums.unrealengine.com/t/how-to-pass-a-function-not-a-result-as-a-member-of-an-array/2257566)

<div class="topic-metadata">

**Author:** [@michll](https://forums.unrealengine.com/u/michll)\
**Replies:** 3\
**Last updated:** [January 19, 2025, 2:44am UTC](https://forums.unrealengine.com/t/how-to-pass-a-function-not-a-result-as-a-member-of-an-array/2257566 "2025-01-19T02:44:59Z")

</div>

DebugFunc():void= var TestArr : \[\]void = array{} set TestArr += array{DebugFunc2} for (FuncToProcess : TestArr): FuncToProcess DebugFunc2():void= Print("2") So this compiles b…

---

## [can a array of audio player volume be handled through verse?](https://forums.unrealengine.com/t/can-a-array-of-audio-player-volume-be-handled-through-verse/2283397)

<div class="topic-metadata">

**Author:** [@CodePHANTOMYT](https://forums.unrealengine.com/u/CodePHANTOMYT)\
**Replies:** 1\
**Last updated:** [January 18, 2025, 11:42pm UTC](https://forums.unrealengine.com/t/can-a-array-of-audio-player-volume-be-handled-through-verse/2283397 "2025-01-18T23:42:38Z")

</div>

i want to put a array of radio or audio player so that i can handle the volume of the device through verse is this possible

---

## [How to change a player's class when he has an item "X" in his inventory?](https://forums.unrealengine.com/t/how-to-change-a-players-class-when-he-has-an-item-x-in-his-inventory/2267657)

<div class="topic-metadata">

**Author:** [@aoKJz1517](https://forums.unrealengine.com/u/aoKJz1517)\
**Replies:** 2\
**Last updated:** [January 18, 2025, 10:48pm UTC](https://forums.unrealengine.com/t/how-to-change-a-players-class-when-he-has-an-item-x-in-his-inventory/2267657 "2025-01-18T22:48:28Z")

</div>

Hi everyone, I’m working on a project in UEFN and would like to implement a feature in Verse where a player’s class changes dynamically based on an item in their inventory. Here’s what I’m trying to achieve: If a pla…

---

## [Object Not Aligning Precisely with Crosshair Using GetLocalForward()](https://forums.unrealengine.com/t/object-not-aligning-precisely-with-crosshair-using-getlocalforward/1973107)

<div class="topic-metadata">

**Author:** [@Soy\_Ema\_31](https://forums.unrealengine.com/u/Soy_Ema_31)\
**Replies:** 4\
**Last updated:** [January 18, 2025, 5:12pm UTC](https://forums.unrealengine.com/t/object-not-aligning-precisely-with-crosshair-using-getlocalforward/1973107 "2025-01-18T17:12:39Z")

</div>

I’m having trouble aligning an object with the player’s crosshair. I’ve used GetLocalForward to calculate the direction the player is looking, and I moved an object in that direction, but the object doesn’t align correct…

---

## [Markup content from string is not yet supported](https://forums.unrealengine.com/t/markup-content-from-string-is-not-yet-supported/2278837)

<div class="topic-metadata">

**Author:** [@Yuseii\_TWX](https://forums.unrealengine.com/u/Yuseii_TWX)\
**Replies:** 0\
**Last updated:** [January 15, 2025, 6:57pm UTC](https://forums.unrealengine.com/t/markup-content-from-string-is-not-yet-supported/2278837 "2025-01-15T18:57:11Z")

</div>

Je suis entrain de faire un system pour voire notre hauteur dans la map mais je ne comprend pas pourquoi il y a une erreur . Qui pourrai m’aider ?

---

## [Display Widget Using Verse](https://forums.unrealengine.com/t/display-widget-using-verse/2278692)

<div class="topic-metadata">

**Author:** [@lantram](https://forums.unrealengine.com/u/lantram)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 6:40pm UTC](https://forums.unrealengine.com/t/display-widget-using-verse/2278692 "2025-01-15T18:40:28Z")

</div>

Hello. I’m trying to display a widget on the screen using Verse. So I created a widget. I made it simple. It is just a canvas with an image on it. I stuck the file in the root of the content browser. It is named Task1Wi…

---

## [Prophunt Tutorial Code not working](https://forums.unrealengine.com/t/prophunt-tutorial-code-not-working/2275539)

<div class="topic-metadata">

**Author:** [@Kuchenwunder](https://forums.unrealengine.com/u/Kuchenwunder)\
**Replies:** 1\
**Last updated:** [January 15, 2025, 1:52am UTC](https://forums.unrealengine.com/t/prophunt-tutorial-code-not-working/2275539 "2025-01-15T01:52:39Z")

</div>

Hello Guys, the verse code from the Prophunt Tutorial in the official UEFN documentation is wrong. I got a few errors in “prop\_team.verse” and “round\_timer.verse”. Do you have any fixes for this, or do someone got a w…

---

## [Custom Resource Counter](https://forums.unrealengine.com/t/custom-resource-counter/2264749)

<div class="topic-metadata">

**Author:** [@UE\_Caleb](https://forums.unrealengine.com/u/UE_Caleb)\
**Replies:** 6\
**Last updated:** [January 14, 2025, 6:58pm UTC](https://forums.unrealengine.com/t/custom-resource-counter/2264749 "2025-01-14T18:58:27Z")

</div>

Anyone know how they created this custom resource counter in the player hud? I’m trying to recreate the same thing but I haven’t been able to find any solutions yet

---

## [Why is my Custom Player not being found?](https://forums.unrealengine.com/t/why-is-my-custom-player-not-being-found/2268833)

<div class="topic-metadata">

**Author:** [@Rastarocket1](https://forums.unrealengine.com/u/Rastarocket1)\
**Replies:** 7\
**Last updated:** [January 11, 2025, 6:13pm UTC](https://forums.unrealengine.com/t/why-is-my-custom-player-not-being-found/2268833 "2025-01-11T18:13:13Z")

</div>

I am trying to code a GUI with buttons that Set the class for the player. However my Custom Player object is not found when I try it out although it works when I press a button to assign the class: ClassSetter(Agent:age…

---

## [Run function on player leave and check its team](https://forums.unrealengine.com/t/run-function-on-player-leave-and-check-its-team/2268012)

<div class="topic-metadata">

**Author:** [@PlsFocus](https://forums.unrealengine.com/u/PlsFocus)\
**Replies:** 4\
**Last updated:** [January 10, 2025, 11:26pm UTC](https://forums.unrealengine.com/t/run-function-on-player-leave-and-check-its-team/2268012 "2025-01-10T23:26:27Z")

</div>

I’m creating a car/parkour game, but if the player leaves, the car is still there, obscuring the way. To clarify, I want a function that detects if a player has left and checks its team so I can reset everything for that…

---

## [Setting stat Magnitude with negative float](https://forums.unrealengine.com/t/setting-stat-magnitude-with-negative-float/2264583)

<div class="topic-metadata">

**Author:** [@LilWikipedia](https://forums.unrealengine.com/u/LilWikipedia)\
**Replies:** 4\
**Last updated:** [January 10, 2025, 6:53pm UTC](https://forums.unrealengine.com/t/setting-stat-magnitude-with-negative-float/2264583 "2025-01-10T18:53:40Z")

</div>

I am trying to set a magnitude for the stat power up collectable based on certain game events and when I set a negative magnitude the call fails… Is this not a feature or am I doing something wrong? The calls with the g…

---

## [Pick A Random Player With Verse](https://forums.unrealengine.com/t/pick-a-random-player-with-verse/2262521)

<div class="topic-metadata">

**Author:** [@Ediardo48](https://forums.unrealengine.com/u/Ediardo48)\
**Replies:** 4\
**Last updated:** [January 10, 2025, 2:36pm UTC](https://forums.unrealengine.com/t/pick-a-random-player-with-verse/2262521 "2025-01-10T14:36:43Z")

</div>

Hello, i need help, im trying to build some kind of an Among Us map, and im trying to get a code that picks a random players and changes their team to team 2. using { /Fortnite.com/Devices } using { /Verse.org/Simulatio…

---

## [Verse Error: Persistent 3101 Error: "Markup content from string is not yet supported"](https://forums.unrealengine.com/t/verse-error-persistent-3101-error-markup-content-from-string-is-not-yet-supported/2267241)

<div class="topic-metadata">

**Author:** [@Kewl-Pops](https://forums.unrealengine.com/u/Kewl-Pops)\
**Replies:** 1\
**Last updated:** [January 9, 2025, 11:17am UTC](https://forums.unrealengine.com/t/verse-error-persistent-3101-error-markup-content-from-string-is-not-yet-supported/2267241 "2025-01-09T11:17:05Z")

</div>

I am encountering a persistent 3101 error in a Verse script while working on a Fortnite UEFN project. The error appears specifically in the AttemptGetFarmSpot function, which is designed to retrieve a vector3 value from …

---

## [Naming the "Verse Starter Template" project "VerseCommander" causes errors](https://forums.unrealengine.com/t/naming-the-verse-starter-template-project-versecommander-causes-errors/2263942)

<div class="topic-metadata">

**Author:** [@swagentrotz](https://forums.unrealengine.com/u/swagentrotz)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/naming-the-verse-starter-template-project-versecommander-causes-errors/2263942 "2025-01-08T17:31:39Z")

</div>

Hello, When you name the “Verse Starter Template” project “VerseCommander” you receive two errors in line 126 and 127 of verse\_commander\_character.verse Ambiguous identifier; could be InvalidDomain.VerseCommander.Verse…

---

## [After AddToTeam\[\] the player's team assignment is reset when round changes](https://forums.unrealengine.com/t/after-addtoteam-the-players-team-assignment-is-reset-when-round-changes/2263463)

<div class="topic-metadata">

**Author:** [@Mikster1](https://forums.unrealengine.com/u/Mikster1)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 11:28pm UTC](https://forums.unrealengine.com/t/after-addtoteam-the-players-team-assignment-is-reset-when-round-changes/2263463 "2025-01-06T23:28:34Z")

</div>

Using GetTeamCollection().AddToTeam works nicely for balancing two teams’ sizes during one round. But if I swap a player’s team with AddToTeam, that player gets re-assigned back to the old team at beginning of new round. …

---

## [AddToTeam - Unknown Identifier](https://forums.unrealengine.com/t/addtoteam-unknown-identifier/1731488)

<div class="topic-metadata">

**Author:** [@BattlePanda68](https://forums.unrealengine.com/u/BattlePanda68)\
**Replies:** 11\
**Last updated:** [January 6, 2025, 7:31pm UTC](https://forums.unrealengine.com/t/addtoteam-unknown-identifier/1731488 "2025-01-06T19:31:47Z")

</div>

Hi all, I am working on my first game, and hoping to publish this week but have run into an issue. To be honest I am struggling with verse and making very slow progress, what I have tried to do is create a script where a…

---

## [Player input being faster than code/process/thread execution](https://forums.unrealengine.com/t/player-input-being-faster-than-code-process-thread-execution/2262595)

<div class="topic-metadata">

**Author:** [@Shoka](https://forums.unrealengine.com/u/Shoka)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 4:52pm UTC](https://forums.unrealengine.com/t/player-input-being-faster-than-code-process-thread-execution/2262595 "2025-01-06T16:52:26Z")

</div>

Let’s say I have 10 buttom\_devices with 0 time to interact, and the player can select from any of them, but only press one per turn. X X X X X X X X X X 1 2 3 4 5 6 7 8 9 10 Once the player presses one buttom, an in…

---

## [I'm getting this error](https://forums.unrealengine.com/t/im-getting-this-error/2261581)

<div class="topic-metadata">

**Author:** [@wspoon12](https://forums.unrealengine.com/u/wspoon12)\
**Replies:** 3\
**Last updated:** [January 6, 2025, 11:46am UTC](https://forums.unrealengine.com/t/im-getting-this-error/2261581 "2025-01-06T11:46:52Z")

</div>

I’m getting this error I didn’t understand where I made a mistake pls help vErr:S84: Expected expression or “}”, got “}” in braced block

---

## [Issue With Progress Bar, The Hud Only Updates Text At Start Of Game!](https://forums.unrealengine.com/t/issue-with-progress-bar-the-hud-only-updates-text-at-start-of-game/2261896)

<div class="topic-metadata">

**Author:** [@pinkskyee](https://forums.unrealengine.com/u/pinkskyee)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 3:09am UTC](https://forums.unrealengine.com/t/issue-with-progress-bar-the-hud-only-updates-text-at-start-of-game/2261896 "2025-01-06T03:09:43Z")

</div>

using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } LevelClass := class { AgentOB : agent HUD : hud\_message\_device CSD : cinematic\_sequence\_devic…

---

## [Change "User Options" in runtime with verse](https://forums.unrealengine.com/t/change-user-options-in-runtime-with-verse/2255642)

<div class="topic-metadata">

**Author:** [@HugoDiGio](https://forums.unrealengine.com/u/HugoDiGio)\
**Replies:** 1\
**Last updated:** [January 3, 2025, 7:22pm UTC](https://forums.unrealengine.com/t/change-user-options-in-runtime-with-verse/2255642 "2025-01-03T19:22:15Z")

</div>

Hi there ! I try to make a custom game mode in UEFN for the first time. For bringing my idea to life, I need to change dynamically the “Player Team” Index of a Player Spawner device with Verse (my Gameplay manager wil…

---

## [Inability to launch any Unreal programs due to "D3D device being lost"](https://forums.unrealengine.com/t/inability-to-launch-any-unreal-programs-due-to-d3d-device-being-lost/2015446)

<div class="topic-metadata">

**Author:** [@lando901](https://forums.unrealengine.com/u/lando901)\
**Replies:** 13\
**Last updated:** [January 3, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/inability-to-launch-any-unreal-programs-due-to-d3d-device-being-lost/2015446 "2025-01-03T14:33:06Z")

</div>

Hello! There have been a number of people who have mentioned this issue, from what I can see, as far back as 2017. I have tried to play three games from Steam, those being Indigo Park, Street Fighter 6, and Crab Champion…

---

## [Verse Code Error](https://forums.unrealengine.com/t/verse-code-error/2254897)

<div class="topic-metadata">

**Author:** [@TannerM\_TTV](https://forums.unrealengine.com/u/TannerM_TTV)\
**Replies:** 1\
**Last updated:** [January 2, 2025, 2:19am UTC](https://forums.unrealengine.com/t/verse-code-error/2254897 "2025-01-02T02:19:44Z")

</div>

Im working on a code in Verse Explorer and it says i have 1 Error, need help fixing. The 1 Error is line one where it says, " class RankSystem: " class RankSystem: var PlayerRanks: Map\<Player, Rank\> = {} var PlayerSta…

---

## [Good day, how can you zoom in and out of the screen in the verse?](https://forums.unrealengine.com/t/good-day-how-can-you-zoom-in-and-out-of-the-screen-in-the-verse/2250099)

<div class="topic-metadata">

**Author:** [@Sipos\_zsom](https://forums.unrealengine.com/u/Sipos_zsom)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 8:37am UTC](https://forums.unrealengine.com/t/good-day-how-can-you-zoom-in-and-out-of-the-screen-in-the-verse/2250099 "2024-12-30T08:37:45Z")

</div>

Good day, how can you zoom in and out of the screen in the verse?

---

## [My verse device crashing](https://forums.unrealengine.com/t/my-verse-device-crashing/2250093)

<div class="topic-metadata">

**Author:** [@Folevolt2](https://forums.unrealengine.com/u/Folevolt2)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 8:33am UTC](https://forums.unrealengine.com/t/my-verse-device-crashing/2250093 "2024-12-30T08:33:03Z")

</div>

Hi, the device seems to be working fine but after going through a few array elements (right here: for(SelectedItem : ShopItem): ) in the ReturnCanvasSlots it breaks and stops working. Would anyone be able to help me out …

---

## [How to enable red squiggly errors to Verse in VS Code?](https://forums.unrealengine.com/t/how-to-enable-red-squiggly-errors-to-verse-in-vs-code/2026797)

<div class="topic-metadata">

**Author:** [@Og1ma](https://forums.unrealengine.com/u/Og1ma)\
**Replies:** 5\
**Last updated:** [December 28, 2024, 11:06am UTC](https://forums.unrealengine.com/t/how-to-enable-red-squiggly-errors-to-verse-in-vs-code/2026797 "2024-12-28T11:06:32Z")

</div>

When I type random text it is not marked as an error. This error already existed when I first started working with Verse. I also reviewed several posts on the forum to solve this problem, but unfortunately nothing help…

---

## [need help with verse UI](https://forums.unrealengine.com/t/need-help-with-verse-ui/2246014)

<div class="topic-metadata">

**Author:** [@Miqsereg](https://forums.unrealengine.com/u/Miqsereg)\
**Replies:** 0\
**Last updated:** [December 27, 2024, 6:08pm UTC](https://forums.unrealengine.com/t/need-help-with-verse-ui/2246014 "2024-12-27T18:08:54Z")

</div>

Look at the log

---

## ["FOR" loop ignored by the code when using a MAP with array as value.](https://forums.unrealengine.com/t/for-loop-ignored-by-the-code-when-using-a-map-with-array-as-value/2244491)

<div class="topic-metadata">

**Author:** [@DiogoLoko](https://forums.unrealengine.com/u/DiogoLoko)\
**Replies:** 0\
**Last updated:** [December 26, 2024, 9:55pm UTC](https://forums.unrealengine.com/t/for-loop-ignored-by-the-code-when-using-a-map-with-array-as-value/2244491 "2024-12-26T21:55:52Z")

</div>

My “for” loop is being ignored when i use a MAP that has a array in the value. Not a clue why… var Players\_com\_revives: \[player\]int = map{} Anyone know why? I don’t have any error returned.

---

## [Folders reading as Unknown Identifiers](https://forums.unrealengine.com/t/folders-reading-as-unknown-identifiers/2240913)

<div class="topic-metadata">

**Author:** [@PrimeManic](https://forums.unrealengine.com/u/PrimeManic)\
**Replies:** 0\
**Last updated:** [December 24, 2024, 10:01pm UTC](https://forums.unrealengine.com/t/folders-reading-as-unknown-identifiers/2240913 "2024-12-24T22:01:03Z")

</div>

I’m trying to pull textures from my content browser folders but when I put the code into verse to access the texture, it give me an “Unknown Identifier” error. This is one of my first times using verse and i’m not sure h…

---

## [Fast respawn on 1v1 Map](https://forums.unrealengine.com/t/fast-respawn-on-1v1-map/2232986)

<div class="topic-metadata">

**Author:** [@BLG\_Siek](https://forums.unrealengine.com/u/BLG_Siek)\
**Replies:** 2\
**Last updated:** [December 23, 2024, 11:00pm UTC](https://forums.unrealengine.com/t/fast-respawn-on-1v1-map/2232986 "2024-12-23T23:00:15Z")

</div>

Hello, Today i was smashing my head all day. I am not able to recreate the instant respawn ( without loading screen) I tried with the code where respawns on specific location, but i respawn on the same point at full h…

---

## [NO STORM DAMAGE OR VFX IN A AREA](https://forums.unrealengine.com/t/no-storm-damage-or-vfx-in-a-area/2237746)

<div class="topic-metadata">

**Author:** [@grailsox](https://forums.unrealengine.com/u/grailsox)\
**Replies:** 2\
**Last updated:** [December 23, 2024, 9:58pm UTC](https://forums.unrealengine.com/t/no-storm-damage-or-vfx-in-a-area/2237746 "2024-12-23T21:58:26Z")

</div>

How should I go about coding a area in which the storm doesnt do any damage or visual vfx in a mutator zone or just a area. storm will constantly be moving and reseting

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

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