# Verse

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

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

**Page:** 35

---

## [Why am I getting red squiggles?](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1346568)

<div class="topic-metadata">

**Author:** [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1346568 "2023-10-26T17:31:09Z")

</div>

I tried to use rng device (Random number generator) through verse and I kept getting red squiggles whenever I subscribed something to WinEvent or LoseEvent

---

## [How to let verse randomly choose an outcome?](https://forums.unrealengine.com/t/how-to-let-verse-randomly-choose-an-outcome/1343490)

<div class="topic-metadata">

**Author:** [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Replies:** 4\
**Last updated:** [October 25, 2023, 6:55pm UTC](https://forums.unrealengine.com/t/how-to-let-verse-randomly-choose-an-outcome/1343490 "2023-10-25T18:55:28Z")

</div>

Hello, I have made a voting system where players can vote for the weapons they like and the weapon with the highest votes will be granted to all players (Via weapon granter). But, when there is 2 weapons with the same nu…

---

## [Disable Interaction](https://forums.unrealengine.com/t/disable-interaction/1343042)

<div class="topic-metadata">

**Author:** [@LloretMunoz](https://forums.unrealengine.com/u/LloretMunoz)\
**Replies:** 1\
**Last updated:** [October 24, 2023, 10:30pm UTC](https://forums.unrealengine.com/t/disable-interaction/1343042 "2023-10-24T22:30:05Z")

</div>

Hi, i would like to know if is there a way to disable the players interaction. I mean, i am creating a race island with different cars and i am using the “AssingDriver” function to set wich player goes in wich car, but p…

---

## [How to subscribe to an event with a \<suspends\> function](https://forums.unrealengine.com/t/how-to-subscribe-to-an-event-with-a-suspends-function/1342533)

<div class="topic-metadata">

**Author:** [@Sly\_Jack](https://forums.unrealengine.com/u/Sly_Jack)\
**Replies:** 2\
**Last updated:** [October 24, 2023, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-subscribe-to-an-event-with-a-suspends-function/1342533 "2023-10-24T20:40:15Z")

</div>

I have a function called ‘LockOn’ that makes a guard that spawns maintain focus on the player. But I can’t figure out how to make a function that subscribe to an event. The ‘MaintainFocus’ function is what requires the…

---

## [Is there a way to randomize an outcome thru verse?](https://forums.unrealengine.com/t/is-there-a-way-to-randomize-an-outcome-thru-verse/1342241)

<div class="topic-metadata">

**Author:** [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 9:11pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-randomize-an-outcome-thru-verse/1342241 "2023-10-23T21:11:29Z")

</div>

Hello, Is there a way to randomize and action through verse? example, let’s say when a player presses an button… player gets a random weapon granted. So, the verse code device which item granter should grant the player a…

---

## [How to get the team index of the agent?](https://forums.unrealengine.com/t/how-to-get-the-team-index-of-the-agent/1341500)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/how-to-get-the-team-index-of-the-agent/1341500 "2023-10-23T15:29:13Z")

</div>

Hello! I know this is a basic question but I still do not understand how to do this. What I want to do is if the agent push the button change the Maximum health of the agent’s team. Thank you in advance!

---

## [How to get PlayerElimination Event correctory?](https://forums.unrealengine.com/t/how-to-get-playerelimination-event-correctory/1338409)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 8\
**Last updated:** [October 22, 2023, 11:22am UTC](https://forums.unrealengine.com/t/how-to-get-playerelimination-event-correctory/1338409 "2023-10-22T11:22:44Z")

</div>

Hello! I want to ask about player elimination event. To track the event Im using elimination\_manager\_device. If I wrote the eliminated and elimination event at same place , is it going to get the correct player that k…

---

## [Display LOG limited to 49 lines ?](https://forums.unrealengine.com/t/display-log-limited-to-49-lines/1339984)

<div class="topic-metadata">

**Author:** [@ChrixBed](https://forums.unrealengine.com/u/ChrixBed)\
**Replies:** 1\
**Last updated:** [October 21, 2023, 8:38pm UTC](https://forums.unrealengine.com/t/display-log-limited-to-49-lines/1339984 "2023-10-21T20:38:15Z")

</div>

I notice when I try to print more than 49 lines, the Log stop showing Print(). Here is a simple loop to print 100 lines in the LOG: for(line := 1..100): Print("line: {line}")

---

## [Verse Array](https://forums.unrealengine.com/t/verse-array/814962)

<div class="topic-metadata">

**Author:** [@4lvaro](https://forums.unrealengine.com/u/4lvaro)\
**Replies:** 8\
**Last updated:** [October 21, 2023, 2:29pm UTC](https://forums.unrealengine.com/t/verse-array/814962 "2023-10-21T14:29:44Z")

</div>

I have an array and I want to push a element at the end of this but I can’t find any form without have to put in the method. How is this possible?

---

## [Is there a super type for all class instances besides "any"?](https://forums.unrealengine.com/t/is-there-a-super-type-for-all-class-instances-besides-any/1338018)

<div class="topic-metadata">

**Author:** [@anonpolo](https://forums.unrealengine.com/u/anonpolo)\
**Replies:** 3\
**Last updated:** [October 20, 2023, 9:30am UTC](https://forums.unrealengine.com/t/is-there-a-super-type-for-all-class-instances-besides-any/1338018 "2023-10-20T09:30:58Z")

</div>

I am implementing an interface with a method that looks like: Update(Payload: any): void I would like to type cast the payload to different types and depending on if the type cast succeeds, take some sort of action. H…

---

## [Order An Array of items with tag](https://forums.unrealengine.com/t/order-an-array-of-items-with-tag/1337607)

<div class="topic-metadata">

**Author:** [@LloretMunoz](https://forums.unrealengine.com/u/LloretMunoz)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/order-an-array-of-items-with-tag/1337607 "2023-10-19T17:42:28Z")

</div>

Hi, I am trying to get multiple objects with the same tag and a I want to get it in a specific order. I am trying to order this objects in the editor, ordering it with names and ordering it in the herarchy of the editor…

---

## [How can I make new line while using HUD device in VERSE](https://forums.unrealengine.com/t/how-can-i-make-new-line-while-using-hud-device-in-verse/1337478)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 7:26am UTC](https://forums.unrealengine.com/t/how-can-i-make-new-line-while-using-hud-device-in-verse/1337478 "2023-10-19T07:26:07Z")

</div>

Hello! Im leaning verse and I want to show alot of information in HUD. But seems like when I trying to show the sentence ,\</\> this code is not working for verse. Is there anyway to make newline for HUD in verse?

---

## [Figuring out which team captured the objective](https://forums.unrealengine.com/t/figuring-out-which-team-captured-the-objective/1336989)

<div class="topic-metadata">

**Author:** [@TurnipSurprise](https://forums.unrealengine.com/u/TurnipSurprise)\
**Replies:** 0\
**Last updated:** [October 18, 2023, 6:52pm UTC](https://forums.unrealengine.com/t/figuring-out-which-team-captured-the-objective/1336989 "2023-10-18T18:52:25Z")

</div>

I have a simple map with a capture device and cylinder. There are 2 teams playing the game. If someone from team 1 captures the cylinder it turns green, if someone from team 2 does, it turns orange. I’m trying to make …

---

## [Variable property inside Struct](https://forums.unrealengine.com/t/variable-property-inside-struct/1335923)

<div class="topic-metadata">

**Author:** [@Portine](https://forums.unrealengine.com/u/Portine)\
**Replies:** 7\
**Last updated:** [October 18, 2023, 2:19pm UTC](https://forums.unrealengine.com/t/variable-property-inside-struct/1335923 "2023-10-18T14:19:02Z")

</div>

So, I have the following code for a struct that is organized inside a map variable: currency\_properties := struct: Type : currency Value : int = 0 GainPerSecond : int = 0 var Currencies\<private\> : \[currency…

---

## [How can I remove custom widgets?](https://forums.unrealengine.com/t/how-can-i-remove-custom-widgets/1336095)

<div class="topic-metadata">

**Author:** [@Klught2.0](https://forums.unrealengine.com/u/Klught2.0)\
**Replies:** 0\
**Last updated:** [October 17, 2023, 10:49pm UTC](https://forums.unrealengine.com/t/how-can-i-remove-custom-widgets/1336095 "2023-10-17T22:49:02Z")

</div>

I created a custom widget using UMG and plugged it into a HUDMessageDevice. Im using Show() and Hide() to make the widget appear and disappear, except the widget never disappears. Even if i set a display time on the HUDM…

---

## [Why am I getting red squiggles?](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503)

<div class="topic-metadata">

**Author:** [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Replies:** 3\
**Last updated:** [October 17, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503 "2023-10-17T13:55:47Z")

</div>

I tried to use GetRandomInt but I kept getting red squiggles, I don’t know why this is happening The reason: Do anybody know why this is happening?

---

## [Is there any way to change players speed during the game?](https://forums.unrealengine.com/t/is-there-any-way-to-change-players-speed-during-the-game/1329431)

<div class="topic-metadata">

**Author:** [@felislsd](https://forums.unrealengine.com/u/felislsd)\
**Replies:** 3\
**Last updated:** [October 17, 2023, 11:47am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-change-players-speed-during-the-game/1329431 "2023-10-17T11:47:02Z")

</div>

Is there any way to change players speed during the game? I know I can adjust the ‘Sprinting Speed Multiplier’ parameter in Island Settings, but I’d prefer the speed to change dynamically in response to specific in-game…

---

## [How do you make a prop device disappear with verse after interaction with it?](https://forums.unrealengine.com/t/how-do-you-make-a-prop-device-disappear-with-verse-after-interaction-with-it/1333639)

<div class="topic-metadata">

**Author:** [@ItzEarthy](https://forums.unrealengine.com/u/ItzEarthy)\
**Replies:** 1\
**Last updated:** [October 15, 2023, 9:22pm UTC](https://forums.unrealengine.com/t/how-do-you-make-a-prop-device-disappear-with-verse-after-interaction-with-it/1333639 "2023-10-15T21:22:40Z")

</div>

I have an array of button devises that i want to disappear when interacted with. Im struggling with geting them to disappear. When theres an interaction it gets to Print("End") but doesnt do anything using { /Fortnite…

---

## [Verse - How do I check if a referenced device is valid?](https://forums.unrealengine.com/t/verse-how-do-i-check-if-a-referenced-device-is-valid/863775)

<div class="topic-metadata">

**Author:** [@Tistik](https://forums.unrealengine.com/u/Tistik)\
**Replies:** 3\
**Last updated:** [October 15, 2023, 8:44pm UTC](https://forums.unrealengine.com/t/verse-how-do-i-check-if-a-referenced-device-is-valid/863775 "2023-10-15T20:44:11Z")

</div>

I have a custom device in which I added some @editable devices to expose in UEFN. Some of them are mandatory but some are optional, to allow for more freedom in behaviour implementation. I’m not sure how to check whethe…

---

## [Canvas UI in Verse not working Properly in Multiplayer Live Session](https://forums.unrealengine.com/t/canvas-ui-in-verse-not-working-properly-in-multiplayer-live-session/1332298)

<div class="topic-metadata">

**Author:** [@babbid](https://forums.unrealengine.com/u/babbid)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 7:22pm UTC](https://forums.unrealengine.com/t/canvas-ui-in-verse-not-working-properly-in-multiplayer-live-session/1332298 "2023-10-14T19:22:07Z")

</div>

I’m trying to use Verse to create a loadout selector on game start. To create the UI, I’m using a Canvas. The Canvas part looks something like this: Omitted the canvas styling but it works and appears on the screen. Ne…

---

## [Bounty System in Verse failing in Multiplayer Live Session](https://forums.unrealengine.com/t/bounty-system-in-verse-failing-in-multiplayer-live-session/1332296)

<div class="topic-metadata">

**Author:** [@babbid](https://forums.unrealengine.com/u/babbid)\
**Replies:** 0\
**Last updated:** [October 14, 2023, 1:15pm UTC](https://forums.unrealengine.com/t/bounty-system-in-verse-failing-in-multiplayer-live-session/1332296 "2023-10-14T13:15:00Z")

</div>

I’m trying to make a bounty system but it’s not working as intended. This is the current code: using {/Fortnite.com/Devices} using {/Verse.org/Simulation} using {/Verse.org/Assets} using {/Verse.org/Random} using {/Fort…

---

## [How can I change the maximum health of the player?(using verse)](https://forums.unrealengine.com/t/how-can-i-change-the-maximum-health-of-the-player-using-verse/1332071)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 3\
**Last updated:** [October 14, 2023, 1:12pm UTC](https://forums.unrealengine.com/t/how-can-i-change-the-maximum-health-of-the-player-using-verse/1332071 "2023-10-14T13:12:49Z")

</div>

Hello! I want to ask how can I change the maximum health of the player. For example , if you pay 100 coin your health changes 100 to 120.

---

## [Comunication between Scripts, possible bug](https://forums.unrealengine.com/t/comunication-between-scripts-possible-bug/1123847)

<div class="topic-metadata">

**Author:** [@K-MUS](https://forums.unrealengine.com/u/K-MUS)\
**Replies:** 6\
**Last updated:** [October 13, 2023, 2:14pm UTC](https://forums.unrealengine.com/t/comunication-between-scripts-possible-bug/1123847 "2023-10-13T14:14:17Z")

</div>

I wanted to comunicate between Script and use data from one script to other. I found that a possible way is to add as @editable the class of the device that you want to use in other script. But sometimes this doesn’t wo…

---

## [How to do parabola with verse?](https://forums.unrealengine.com/t/how-to-do-parabola-with-verse/1329720)

<div class="topic-metadata">

**Author:** [@VETZBR](https://forums.unrealengine.com/u/VETZBR)\
**Replies:** 4\
**Last updated:** [October 13, 2023, 8:02am UTC](https://forums.unrealengine.com/t/how-to-do-parabola-with-verse/1329720 "2023-10-13T08:02:54Z")

</div>

hey, i’m tryng to learn some concepts on verse and one of this concepts are Parabolas I know this isn’t simple but if anyone already worked on this and feel comfortable sharing how it works i will be extremely glad! …

---

## [Is it possible to attach a variable to an player itself? (Verse)](https://forums.unrealengine.com/t/is-it-possible-to-attach-a-variable-to-an-player-itself-verse/1327152)

<div class="topic-metadata">

**Author:** [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 10:42pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-attach-a-variable-to-an-player-itself-verse/1327152 "2023-10-12T22:42:25Z")

</div>

Hello, I have been wondering if you can give individual players a variable in verse… Like giving them a class of their own. Like, when a player presses a specific button that player will be given a variable exclusive for…

---

## [How can I show the playername in HUD?](https://forums.unrealengine.com/t/how-can-i-show-the-playername-in-hud/1330441)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 6:30pm UTC](https://forums.unrealengine.com/t/how-can-i-show-the-playername-in-hud/1330441 "2023-10-12T18:30:53Z")

</div>

Hello I just want to make the ranking of score in HUD like the image below? But I don’t know how to show the playername in hud\_device… if somebody knows please teach me!

---

## [Is there anyway to easily interact with all devices of a certain type?](https://forums.unrealengine.com/t/is-there-anyway-to-easily-interact-with-all-devices-of-a-certain-type/1330489)

<div class="topic-metadata">

**Author:** [@user\_a3f03b2c769f4d05ae2eb4232649f1a37f387f03346a500ac7e4b5](https://forums.unrealengine.com/u/user_a3f03b2c769f4d05ae2eb4232649f1a37f387f03346a500ac7e4b5)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 5:16pm UTC](https://forums.unrealengine.com/t/is-there-anyway-to-easily-interact-with-all-devices-of-a-certain-type/1330489 "2023-10-12T17:16:30Z")

</div>

Hello! I currently have a small script that makes it so anytime a specific log from a physics\_tree\_device is destroyed the player will get 100 Gold. Is there a way to make this apply to EVERY physics\_tree\_device in the l…

---

## [The camera shake does not work in version 26.30.](https://forums.unrealengine.com/t/the-camera-shake-does-not-work-in-version-26-30/1330459)

<div class="topic-metadata">

**Author:** [@bf56ffd7fcb5486bbedcfecb5d8d0e44](https://forums.unrealengine.com/u/bf56ffd7fcb5486bbedcfecb5d8d0e44)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 2:53pm UTC](https://forums.unrealengine.com/t/the-camera-shake-does-not-work-in-version-26-30/1330459 "2023-10-12T14:53:15Z")

</div>

From version 26.30, the camera shake does not work using the method introduced in the link below. Is this a bug in UEFN?

---

## [Get Vehicle Trick Score in Verse](https://forums.unrealengine.com/t/get-vehicle-trick-score-in-verse/1330433)

<div class="topic-metadata">

**Author:** [@Rytir2001](https://forums.unrealengine.com/u/Rytir2001)\
**Replies:** 0\
**Last updated:** [October 12, 2023, 2:46pm UTC](https://forums.unrealengine.com/t/get-vehicle-trick-score-in-verse/1330433 "2023-10-12T14:46:31Z")

</div>

I am trying to get the stunt trick score players get from doing tricks with vehicles. Is there a way to get the number? I have my island setup so that it shows in HUD and then I tried adding player reference device and …

---

## [How to spawn objects only above the ground in Verse](https://forums.unrealengine.com/t/how-to-spawn-objects-only-above-the-ground-in-verse/1329320)

<div class="topic-metadata">

**Author:** [@son0629](https://forums.unrealengine.com/u/son0629)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 12:54pm UTC](https://forums.unrealengine.com/t/how-to-spawn-objects-only-above-the-ground-in-verse/1329320 "2023-10-12T12:54:00Z")

</div>

This Video shows how to spawn objects in UEFN, but how to spawn them only above the ground? (using DeepL)

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

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