# Verse

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

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

**Page:** 47

---

## [InteractedWithEvent for Button not triggering as expected](https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435)

<div class="topic-metadata">

**Author:** [@zobbyZeus](https://forums.unrealengine.com/u/zobbyZeus)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 8:34am UTC](https://forums.unrealengine.com/t/interactedwithevent-for-button-not-triggering-as-expected/831435 "2023-03-29T08:34:37Z")

</div>

OnBegin() : void = # You can output to the log like this to determine what your script is up to Logger.Print(“ATV Script Started!”) TimerUpgradeButton.InteractedWithEvent.Subscribe(OnButtonInteractedWith) # When the …

---

## [How do you easily give items to players?](https://forums.unrealengine.com/t/how-do-you-easily-give-items-to-players/830717)

<div class="topic-metadata">

**Author:** [@Gamblyat](https://forums.unrealengine.com/u/Gamblyat)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 4:05am UTC](https://forums.unrealengine.com/t/how-do-you-easily-give-items-to-players/830717 "2023-03-29T04:05:20Z")

</div>

The only way I’ve seen to give items to players is in this snippet here Which I can assume means we need a new item\_granter\_device for every item we want to give people. Is there an easier way to do this? Already feels…

---

## [How do you cast an int to a float?](https://forums.unrealengine.com/t/how-do-you-cast-an-int-to-a-float/828419)

<div class="topic-metadata">

**Author:** [@Gamblyat](https://forums.unrealengine.com/u/Gamblyat)\
**Replies:** 7\
**Last updated:** [March 28, 2023, 7:55pm UTC](https://forums.unrealengine.com/t/how-do-you-cast-an-int-to-a-float/828419 "2023-03-28T19:55:27Z")

</div>

I have tried absolutely everything and cannot seem to cast an integer to a float. The closest I got is if (test := float\[float\_val\]) {} Which displays the extremely odd error Dynamic cast to \`float\` takes an float as…

---

## [How do I see all the game code?](https://forums.unrealengine.com/t/how-do-i-see-all-the-game-code/829078)

<div class="topic-metadata">

**Author:** [@NotXxavi007](https://forums.unrealengine.com/u/NotXxavi007)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 6:29pm UTC](https://forums.unrealengine.com/t/how-do-i-see-all-the-game-code/829078 "2023-03-28T18:29:48Z")

</div>

Is there any way to see all the game code? I have been looking to the Fortnite.digest.verse and and UnrealEngine.digest.verse and I only see methods and classes calls but not even their code to see their functionality. …

---

## [How do you dynamically create \<localizes\> message?](https://forums.unrealengine.com/t/how-do-you-dynamically-create-localizes-message/829527)

<div class="topic-metadata">

**Author:** [@Gamblyat](https://forums.unrealengine.com/u/Gamblyat)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 6:23pm UTC](https://forums.unrealengine.com/t/how-do-you-dynamically-create-localizes-message/829527 "2023-03-28T18:23:48Z")

</div>

I’d like to pass dynamic values to UI elements such as numbers that increment. I only seem to be able to define static values though such as TestMessage\<localizes\> : message = "test" Is there any way to create these me…

---

## [How to Keep Data between Rounds / get Current Round](https://forums.unrealengine.com/t/how-to-keep-data-between-rounds-get-current-round/827580)

<div class="topic-metadata">

**Author:** [@herbbert](https://forums.unrealengine.com/u/herbbert)\
**Replies:** 3\
**Last updated:** [March 28, 2023, 4:56pm UTC](https://forums.unrealengine.com/t/how-to-keep-data-between-rounds-get-current-round/827580 "2023-03-28T16:56:32Z")

</div>

I want to know at the beginning of the round which round this is. is there a function that gives me this back? my other idea was, i count up an int at the end of each round to read out this variable again at the beginnin…

---

## [Play audio from audio\_player\_device (verse code)](https://forums.unrealengine.com/t/play-audio-from-audio-player-device-verse-code/825085)

<div class="topic-metadata">

**Author:** [@deathberry](https://forums.unrealengine.com/u/deathberry)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 10:18am UTC](https://forums.unrealengine.com/t/play-audio-from-audio-player-device-verse-code/825085 "2023-03-28T10:18:53Z")

</div>

Hello! I’m trying to play a sound from audio\_player\_device. I have : (translating fields from french to english, may differ but essentially it is the same) created the audio\_player\_device set the sound asset to play s…

---

## [Execute function every frame (Like in Unity)](https://forums.unrealengine.com/t/execute-function-every-frame-like-in-unity/829048)

<div class="topic-metadata">

**Author:** [@minatore](https://forums.unrealengine.com/u/minatore)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 7:59am UTC](https://forums.unrealengine.com/t/execute-function-every-frame-like-in-unity/829048 "2023-03-28T07:59:21Z")

</div>

Hi guys. I wanted to create a game that when someone reaches a certain value in the Z axis, something happens. This is what i did: using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /Verse.org/Ver…

---

## ["This invocation calls a function that has the 'no\_rollback' effect, which is not allowed by its context."](https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776)

<div class="topic-metadata">

**Author:** [@j\_rapp](https://forums.unrealengine.com/u/j_rapp)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 3:26am UTC](https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776 "2023-03-28T03:26:27Z")

</div>

Im having an issue trying to call GetTags() on a creative\_object\_interface. It gives me the error "This invocation calls a function that has the 'no\_rollback' effect, which is not allowed by its context.", and Im not sur…

---

## [Can somebody explains to me what each part of this line of code mean and how can I do it with players (If it's possible)](https://forums.unrealengine.com/t/can-somebody-explains-to-me-what-each-part-of-this-line-of-code-mean-and-how-can-i-do-it-with-players-if-its-possible/829113)

<div class="topic-metadata">

**Author:** [@TZZonerPlayz](https://forums.unrealengine.com/u/TZZonerPlayz)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 2:59am UTC](https://forums.unrealengine.com/t/can-somebody-explains-to-me-what-each-part-of-this-line-of-code-mean-and-how-can-i-do-it-with-players-if-its-possible/829113 "2023-03-28T02:59:28Z")

</div>

Hello there, I need somebody to explain what each part of this line of this code is and what they do and can you please give me examples along when explaining each part of this line of code so that it will be easier? an…

---

## [Can somebody please explain to me what is happening in this code?](https://forums.unrealengine.com/t/can-somebody-please-explain-to-me-what-is-happening-in-this-code/823701)

<div class="topic-metadata">

**Author:** [@TZZonerPlayz](https://forums.unrealengine.com/u/TZZonerPlayz)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 10:57pm UTC](https://forums.unrealengine.com/t/can-somebody-please-explain-to-me-what-is-happening-in-this-code/823701 "2023-03-27T22:57:02Z")

</div>

Hello there, I need help explaining how does this code work. Here is the code: (Credit for the Fortnite Verse documentations for this code): if (PotionType = "damage"): if ((PlayerHealth \> PotionDamageAmou…

---

## [Equivalent to arrow functions in Verse?](https://forums.unrealengine.com/t/equivalent-to-arrow-functions-in-verse/828438)

<div class="topic-metadata">

**Author:** [@j\_rapp](https://forums.unrealengine.com/u/j_rapp)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 9:04pm UTC](https://forums.unrealengine.com/t/equivalent-to-arrow-functions-in-verse/828438 "2023-03-27T21:04:22Z")

</div>

Im wondering if there is an equivalent to arrow functions in verse. The use case I have is I want to call SpawnerDevice.SpawnedEvent.Subscribe(OnPlayerSpawned) but I want to add an additional parameter into the OnPlayerS…

---

## [Where can I get the 'agent' to be used here?](https://forums.unrealengine.com/t/where-can-i-get-the-agent-to-be-used-here/827857)

<div class="topic-metadata">

**Author:** [@Kalusss](https://forums.unrealengine.com/u/Kalusss)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/where-can-i-get-the-agent-to-be-used-here/827857 "2023-03-27T18:59:23Z")

</div>

I want to make a player who clicked a button on my main canvas to be shown the Class Selector UI, but in order to do that, I need an agent. How can I get that within this function? HandleSelectedUIButton(Message : widge…

---

## [ForEach Syntax](https://forums.unrealengine.com/t/foreach-syntax/821121)

<div class="topic-metadata">

**Author:** [@BoXBoonNoob](https://forums.unrealengine.com/u/BoXBoonNoob)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 4:06pm UTC](https://forums.unrealengine.com/t/foreach-syntax/821121 "2023-03-27T16:06:21Z")

</div>

Hey, where do I find the syntax list? I’m trying to use a for each and it does not work I tried foreach and for each here’s my code: Playspace : fort\_playspace = GetPlayspace() AllPlayers : \[\]player = Playspace.GetPlay…

---

## [How to make prop look at Player?](https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709)

<div class="topic-metadata">

**Author:** [@poltrr](https://forums.unrealengine.com/u/poltrr)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709 "2023-03-27T15:12:51Z")

</div>

Hi, I’m trying to change a prop’s Rotation, so that it looks at the Player. I’m not quite sure what’s the correct way to: a) set a prop’s Rotation b) get the rotation from a vector to another (prop to Player) Thanks! …

---

## [Is it correct that there's no way to use breakpoints in Verse ?](https://forums.unrealengine.com/t/is-it-correct-that-theres-no-way-to-use-breakpoints-in-verse/825994)

<div class="topic-metadata">

**Author:** [@The\_Fump](https://forums.unrealengine.com/u/The_Fump)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 11:31am UTC](https://forums.unrealengine.com/t/is-it-correct-that-theres-no-way-to-use-breakpoints-in-verse/825994 "2023-03-27T11:31:22Z")

</div>

Pretty much the title, I was wondering if we would be forced to use logs to debug, as I couldn’t see any documentation or way to set it up in UEFN. If that’s the case, is there a timeline for getting the functionality ? …

---

## [Is there a GetChild() or GetChildren() function?](https://forums.unrealengine.com/t/is-there-a-getchild-or-getchildren-function/826802)

<div class="topic-metadata">

**Author:** [@poltrr](https://forums.unrealengine.com/u/poltrr)\
**Replies:** 0\
**Last updated:** [March 27, 2023, 4:58am UTC](https://forums.unrealengine.com/t/is-there-a-getchild-or-getchildren-function/826802 "2023-03-27T04:58:46Z")

</div>

Or can we not currently do that with verse? Thanks!

---

## [creating new devices with verse while game is running](https://forums.unrealengine.com/t/creating-new-devices-with-verse-while-game-is-running/821935)

<div class="topic-metadata">

**Author:** [@SyntaxzError](https://forums.unrealengine.com/u/SyntaxzError)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 10:31am UTC](https://forums.unrealengine.com/t/creating-new-devices-with-verse-while-game-is-running/821935 "2023-03-26T10:31:04Z")

</div>

Hello Everyone! I’ve been messing around a bit with devices and i was looking for a way to summon/spawn new devices while the game is running. My idea with this a a “hacky” way around rotating players without needing to…

---

## [Which types are passed as value and which as reference?](https://forums.unrealengine.com/t/which-types-are-passed-as-value-and-which-as-reference/824128)

<div class="topic-metadata">

**Author:** [@poltrr](https://forums.unrealengine.com/u/poltrr)\
**Replies:** 0\
**Last updated:** [March 26, 2023, 9:07am UTC](https://forums.unrealengine.com/t/which-types-are-passed-as-value-and-which-as-reference/824128 "2023-03-26T09:07:52Z")

</div>

Hi, I couldn’t find an answer in verse’s documentation (although, I could’ve easily missed it). Silly question but still :stuck\_out\_tongue: Thanks.

---

## [How to reference a Skeletal Mesh in a verse script?](https://forums.unrealengine.com/t/how-to-reference-a-skeletal-mesh-in-a-verse-script/819616)

<div class="topic-metadata">

**Author:** [@poltrr](https://forums.unrealengine.com/u/poltrr)\
**Replies:** 1\
**Last updated:** [March 26, 2023, 7:32am UTC](https://forums.unrealengine.com/t/how-to-reference-a-skeletal-mesh-in-a-verse-script/819616 "2023-03-26T07:32:17Z")

</div>

Hi, I’ve been referencing props using creative\_prop, but is it possible to reference skeletal meshes?

---

## [Am I writing this code right?](https://forums.unrealengine.com/t/am-i-writing-this-code-right/823315)

<div class="topic-metadata">

**Author:** [@TZZonerPlayz](https://forums.unrealengine.com/u/TZZonerPlayz)\
**Replies:** 4\
**Last updated:** [March 26, 2023, 1:08am UTC](https://forums.unrealengine.com/t/am-i-writing-this-code-right/823315 "2023-03-26T01:08:59Z")

</div>

Hello there, I need help. I am having struggle and basically, Visual Studio Code is giving me a error that says Functions declared at this scope are not supported and I think I’m writing this code right. Here is my cod…

---

## [why is the print command not working?](https://forums.unrealengine.com/t/why-is-the-print-command-not-working/821833)

<div class="topic-metadata">

**Author:** [@TZZonerPlayz](https://forums.unrealengine.com/u/TZZonerPlayz)\
**Replies:** 10\
**Last updated:** [March 25, 2023, 5:36pm UTC](https://forums.unrealengine.com/t/why-is-the-print-command-not-working/821833 "2023-03-25T17:36:35Z")

</div>

Hello there, I need your help. Whenever I type the print command, it doesn’t work even though I’m not receiving errors. Can you please help me? Thank you.

---

## [playing with friends](https://forums.unrealengine.com/t/playing-with-friends/817661)

<div class="topic-metadata">

**Author:** [@Awesomebossdj7](https://forums.unrealengine.com/u/Awesomebossdj7)\
**Replies:** 1\
**Last updated:** [March 25, 2023, 7:39am UTC](https://forums.unrealengine.com/t/playing-with-friends/817661 "2023-03-25T07:39:37Z")

</div>

(if possible) How do I play my UEFN map with my friends without being enrolled in the creator program?

---

## [Appearance of subtitles on the screen in Fortnite](https://forums.unrealengine.com/t/appearance-of-subtitles-on-the-screen-in-fortnite/819947)

<div class="topic-metadata">

**Author:** [@ReyPL](https://forums.unrealengine.com/u/ReyPL)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 5:44am UTC](https://forums.unrealengine.com/t/appearance-of-subtitles-on-the-screen-in-fortnite/819947 "2023-03-25T05:44:01Z")

</div>

Hi! I created a subtitles in style of the same subtitles that are on Live-Events. I guess I have to use Verse to make these subtitles actually appear on the screen? I am completely weak when it comes to programming, is t…

---

## [Code error when following Verse Guide.](https://forums.unrealengine.com/t/code-error-when-following-verse-guide/818422)

<div class="topic-metadata">

**Author:** [@Ryan.Gregg](https://forums.unrealengine.com/u/Ryan.Gregg)\
**Replies:** 3\
**Last updated:** [March 24, 2023, 11:12pm UTC](https://forums.unrealengine.com/t/code-error-when-following-verse-guide/818422 "2023-03-24T23:12:52Z")

</div>

I am following this \> 2. Defining the Pickup and Delivery Zones My issue is I’m not having any luck with the following pieces of code VS isn’t happy with. spawn { WaitForZoneCompleted(option{CaptureArea.PlayerEntersEve…

---

## [Major - Switch device functions yielding the wrong types](https://forums.unrealengine.com/t/major-switch-device-functions-yielding-the-wrong-types/791175)

<div class="topic-metadata">

**Author:** [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Replies:** 4\
**Last updated:** [March 23, 2023, 2:46am UTC](https://forums.unrealengine.com/t/major-switch-device-functions-yielding-the-wrong-types/791175 "2023-03-23T02:46:49Z")

</div>

GetCurrentState function from switch\_device returns a void instead of a logic. This got me confused when I made an if, else if, else in the 2nd screenshot. I expect either true or false as stated in the commented line ab…

---

## [VFX Creator device rotation reset when using SpawnAt()](https://forums.unrealengine.com/t/vfx-creator-device-rotation-reset-when-using-spawnat/795972)

<div class="topic-metadata">

**Author:** [@DustinREDGames](https://forums.unrealengine.com/u/DustinREDGames)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 9:00pm UTC](https://forums.unrealengine.com/t/vfx-creator-device-rotation-reset-when-using-spawnat/795972 "2023-03-22T21:00:32Z")

</div>

I have a rotated VFX Creator that fires particles forward, the rotation is reset when using SpawnAt(Agent:agent) How do you keep rotation on a VFX Creator device when using Stick to Player if its reset when attached?

---

## [Making classes private](https://forums.unrealengine.com/t/making-classes-private/795855)

<div class="topic-metadata">

**Author:** [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Replies:** 2\
**Last updated:** [March 22, 2023, 7:23pm UTC](https://forums.unrealengine.com/t/making-classes-private/795855 "2023-03-22T19:23:50Z")

</div>

I saw you can use the specifier in classes. But wherever I put them it gives an error. Am I doing something wrong?

---

## [About the Verse category](https://forums.unrealengine.com/t/about-the-verse-category/797550)

<div class="topic-metadata">

**Author:** [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Replies:** 0\
**Last updated:** [March 22, 2023, 4:58pm UTC](https://forums.unrealengine.com/t/about-the-verse-category/797550 "2023-03-22T16:58:24Z")

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [Switch state not false or true](https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835)

<div class="topic-metadata">

**Author:** [@FinestCreative](https://forums.unrealengine.com/u/FinestCreative)\
**Replies:** 3\
**Last updated:** [March 18, 2023, 1:11am UTC](https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835 "2023-03-18T01:11:35Z")

</div>

A trigger calls this function with parameters Agent and some int ID. Switch is a switch\_device in an array of Switches. But when I check the state it is not true and it is also not not true. It always prints the final ‘…

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

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