# Verse

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

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

**Page:** 31

---

## [How to use an array in a function (Verse)](https://forums.unrealengine.com/t/how-to-use-an-array-in-a-function-verse/1611020)

<div class="topic-metadata">

**Author:** [@Radical\_Red\_Head](https://forums.unrealengine.com/u/Radical_Red_Head)\
**Replies:** 1\
**Last updated:** [January 17, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/how-to-use-an-array-in-a-function-verse/1611020 "2024-01-17T17:04:17Z")

</div>

I am trying to use an array in a function without directly referring to it so I can reuse the function for other arrays, but I don’t know how to do that. Any easy fix / solution for this? weighteditemgrant := class\<conc…

---

## [How to switch only one player's view?](https://forums.unrealengine.com/t/how-to-switch-only-one-players-view/1621677)

<div class="topic-metadata">

**Author:** [@RyuFuru12121](https://forums.unrealengine.com/u/RyuFuru12121)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-switch-only-one-players-view/1621677 "2024-01-17T15:54:17Z")

</div>

Hi, Let me question how Cinematic Sequence Device works for onle one play. I write the following code that changes view of player who interacts wirh “Button Device” to camera of “Cinematic Sequence Device”. OnBegin\<ov…

---

## [How to one trigger multiple players activate only one time](https://forums.unrealengine.com/t/how-to-one-trigger-multiple-players-activate-only-one-time/1619990)

<div class="topic-metadata">

**Author:** [@miroslavresa](https://forums.unrealengine.com/u/miroslavresa)\
**Replies:** 0\
**Last updated:** [January 16, 2024, 8:44pm UTC](https://forums.unrealengine.com/t/how-to-one-trigger-multiple-players-activate-only-one-time/1619990 "2024-01-16T20:44:23Z")

</div>

Hi, when it comes to multiplayer, I need that when a player activates the trigger, that the trigger is deactivated for that player, but that others can activate it, and of course for each player who activates it, that i…

---

## [Changing variable from another class in verse](https://forums.unrealengine.com/t/changing-variable-from-another-class-in-verse/1616066)

<div class="topic-metadata">

**Author:** [@ButtersHQ](https://forums.unrealengine.com/u/ButtersHQ)\
**Replies:** 1\
**Last updated:** [January 15, 2024, 6:57pm UTC](https://forums.unrealengine.com/t/changing-variable-from-another-class-in-verse/1616066 "2024-01-15T18:57:48Z")

</div>

MyOtherClass:= class(): ChangeMyInt():void= #what goes here to set/change the value of "MyInt" from "MyClass"? MyClass := class(creative\_device): var MyInt: int = 0 OnBegin\<override\>()\<suspends\>:void=…

---

## [UEFN Code Repository](https://forums.unrealengine.com/t/uefn-code-repository/1616559)

<div class="topic-metadata">

**Author:** [@rbottomsgamer1](https://forums.unrealengine.com/u/rbottomsgamer1)\
**Replies:** 0\
**Last updated:** [January 15, 2024, 1:51pm UTC](https://forums.unrealengine.com/t/uefn-code-repository/1616559 "2024-01-15T13:51:16Z")

</div>

The source for the UEFN Stolen Files demo from the State of Unreal GDC 2023 would be an excellent learning tool. Is there a repository with UEFN code available?

---

## [This function parameter expects a value of type fort\_character, but this argument is an incompatible value of type tuple().](https://forums.unrealengine.com/t/this-function-parameter-expects-a-value-of-type-fort-character-but-this-argument-is-an-incompatible-value-of-type-tuple/1616158)

<div class="topic-metadata">

**Author:** [@Galinha](https://forums.unrealengine.com/u/Galinha)\
**Replies:** 0\
**Last updated:** [January 15, 2024, 7:54am UTC](https://forums.unrealengine.com/t/this-function-parameter-expects-a-value-of-type-fort-character-but-this-argument-is-an-incompatible-value-of-type-tuple/1616158 "2024-01-15T07:54:12Z")

</div>

How do I resolve this error within my script? I’m not able to get the loop to start. using { /Fortnite.com/Characters } using { /Fortnite.com/Devices } using { /Fortnite.com/Game } using { /Fortnite.com/UI } using { /Ve…

---

## [Random Alive Player](https://forums.unrealengine.com/t/random-alive-player/1614634)

<div class="topic-metadata">

**Author:** [@Berkay\_btw](https://forums.unrealengine.com/u/Berkay_btw)\
**Replies:** 1\
**Last updated:** [January 14, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/random-alive-player/1614634 "2024-01-14T18:19:57Z")

</div>

I was wondering if anyone has a Random Alive Player code since i’ve been struggling making one

---

## [How to Access rotaiton struct?](https://forums.unrealengine.com/t/how-to-access-rotaiton-struct/1613618)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 0\
**Last updated:** [January 14, 2024, 10:27am UTC](https://forums.unrealengine.com/t/how-to-access-rotaiton-struct/1613618 "2024-01-14T10:27:10Z")

</div>

Rotation := Character.GetTransform().Rotation Character is prop and I want this prop’s Yaw to be 0.0 always. This Character prop is tracking fortcharacter of the player. I dont want Yaw to be changed. Thank you in ad…

---

## [vfx\_spawner that should follow the player](https://forums.unrealengine.com/t/vfx-spawner-that-should-follow-the-player/1611314)

<div class="topic-metadata">

**Author:** [@Galinha](https://forums.unrealengine.com/u/Galinha)\
**Replies:** 0\
**Last updated:** [January 13, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/vfx-spawner-that-should-follow-the-player/1611314 "2024-01-13T15:10:24Z")

</div>

I have a script that should activate a vfx\_spawner that would follow the Pos/Rot of the player who was walking, thus making the effect follow him. But when I put Pos/Rot inside a loop it gives me this error. Error: To p…

---

## [Help needed fixing freezing pistol code?](https://forums.unrealengine.com/t/help-needed-fixing-freezing-pistol-code/1611289)

<div class="topic-metadata">

**Author:** [@Zymyx](https://forums.unrealengine.com/u/Zymyx)\
**Replies:** 0\
**Last updated:** [January 13, 2024, 2:57pm UTC](https://forums.unrealengine.com/t/help-needed-fixing-freezing-pistol-code/1611289 "2024-01-13T14:57:45Z")

</div>

Hi this is a segment of code that freezes the target for 2 seconds after being shot by a weapon within a conditional button. The problem is that the character who holds weapon freezes whenever he takes damage and holds t…

---

## [Save Point Device and Trackers](https://forums.unrealengine.com/t/save-point-device-and-trackers/1339725)

<div class="topic-metadata">

**Author:** [@KCYON](https://forums.unrealengine.com/u/KCYON)\
**Replies:** 8\
**Last updated:** [January 13, 2024, 11:16am UTC](https://forums.unrealengine.com/t/save-point-device-and-trackers/1339725 "2024-01-13T11:16:37Z")

</div>

Hello, hope all is well. I recently noticed the Save Point Device is back! There is only one issue (at least for me) with regards to game progression. I want to save tracker progress along with what the Save Point Devi…

---

## [How to display variable text inside map without billboard](https://forums.unrealengine.com/t/how-to-display-variable-text-inside-map-without-billboard/1610171)

<div class="topic-metadata">

**Author:** [@thomasflanagan.1](https://forums.unrealengine.com/u/thomasflanagan.1)\
**Replies:** 0\
**Last updated:** [January 13, 2024, 1:42am UTC](https://forums.unrealengine.com/t/how-to-display-variable-text-inside-map-without-billboard/1610171 "2024-01-13T01:42:52Z")

</div>

Is there anyway to display variable text that I can edit inside of verse that will be in the map (not UI based) and that isn’t a billboard. Something of this effect where I can edit the name of Cylinder during runtime of…

---

## [Moving Prop to the nearest Player](https://forums.unrealengine.com/t/moving-prop-to-the-nearest-player/1608763)

<div class="topic-metadata">

**Author:** [@Berkay\_btw](https://forums.unrealengine.com/u/Berkay_btw)\
**Replies:** 1\
**Last updated:** [January 13, 2024, 12:22am UTC](https://forums.unrealengine.com/t/moving-prop-to-the-nearest-player/1608763 "2024-01-13T00:22:42Z")

</div>

I’m trying to move the CloudProp to the nearest Player, now I have the Position of all Players including the instigating player of the blue remote Device, but on theCloudProp.MoveTo(PlayerPosition + vector5, rotation{}, …

---

## [What is an unintended execution of two methoud with signal remote event listener?](https://forums.unrealengine.com/t/what-is-an-unintended-execution-of-two-methoud-with-signal-remote-event-listener/1608548)

<div class="topic-metadata">

**Author:** [@RyuFuru12121](https://forums.unrealengine.com/u/RyuFuru12121)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 12:23pm UTC](https://forums.unrealengine.com/t/what-is-an-unintended-execution-of-two-methoud-with-signal-remote-event-listener/1608548 "2024-01-12T12:23:25Z")

</div>

Hi, Let me ask a problem of signal remote event listener. I created the following verse code. The purpose of this code is to switch camera angle and show message window when pressing “attack” button of Signal Remote. …

---

## [how to call a agent in a ?agent function](https://forums.unrealengine.com/t/how-to-call-a-agent-in-a-agent-function/1608169)

<div class="topic-metadata">

**Author:** [@KingqGrove](https://forums.unrealengine.com/u/KingqGrove)\
**Replies:** 0\
**Last updated:** [January 12, 2024, 6:43am UTC](https://forums.unrealengine.com/t/how-to-call-a-agent-in-a-agent-function/1608169 "2024-01-12T06:43:18Z")

</div>

so i tried to spawn a prop with a trigger event which is a ?agent but the spawn prop doesnt work with a ?agent, i tried adding a button i thought i can activate the button with the trigger but i cant, i tried to wrap the…

---

## [SetMaterial not working](https://forums.unrealengine.com/t/setmaterial-not-working/1607630)

<div class="topic-metadata">

**Author:** [@michll](https://forums.unrealengine.com/u/michll)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 11:49pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working/1607630 "2024-01-11T23:49:44Z")

</div>

Why is this showing error if someone knows solution i would be grateful. Maybe it has something to do with external but I don’t really know what does it mean

---

## [Get Position of triggering Player](https://forums.unrealengine.com/t/get-position-of-triggering-player/1605938)

<div class="topic-metadata">

**Author:** [@Berkay\_btw](https://forums.unrealengine.com/u/Berkay_btw)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 3:58pm UTC](https://forums.unrealengine.com/t/get-position-of-triggering-player/1605938 "2024-01-11T15:58:05Z")

</div>

This code make a Prop follow the Player 0 but how do I make him follow the person who triggered the PrimarySignal?: using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Dia…

---

## [How do I detect the nearest player to a person who activates a remote?](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645)

<div class="topic-metadata">

**Author:** [@Catthatrat](https://forums.unrealengine.com/u/Catthatrat)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 3:15am UTC](https://forums.unrealengine.com/t/how-do-i-detect-the-nearest-player-to-a-person-who-activates-a-remote/1603645 "2024-01-11T03:15:26Z")

</div>

I want to give a jumpscare to the nearest player of a player who activates a remote.

---

## [How to clear build using verse](https://forums.unrealengine.com/t/how-to-clear-build-using-verse/1578876)

<div class="topic-metadata">

**Author:** [@uberthoth](https://forums.unrealengine.com/u/uberthoth)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-clear-build-using-verse/1578876 "2024-01-10T20:40:10Z")

</div>

How do I clear out all the player built stuff using verse?

---

## [How to teleport the lobby to a new location when an elimination occurred?](https://forums.unrealengine.com/t/how-to-teleport-the-lobby-to-a-new-location-when-an-elimination-occurred/1596375)

<div class="topic-metadata">

**Author:** [@Faze90Builder](https://forums.unrealengine.com/u/Faze90Builder)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 7:06pm UTC](https://forums.unrealengine.com/t/how-to-teleport-the-lobby-to-a-new-location-when-an-elimination-occurred/1596375 "2024-01-10T19:06:29Z")

</div>

When someone in the lobby gets an elimination, I want everyone to be teleported to a new area of the map. However, I do not know how to.

---

## [How to Subscribe more than two method?](https://forums.unrealengine.com/t/how-to-subscribe-more-than-two-method/1604268)

<div class="topic-metadata">

**Author:** [@RyuFuru12121](https://forums.unrealengine.com/u/RyuFuru12121)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 6:28pm UTC](https://forums.unrealengine.com/t/how-to-subscribe-more-than-two-method/1604268 "2024-01-10T18:28:24Z")

</div>

Hi, Let me ask a way to Subscribe more than two method. I would like to execute two method when a button widget is clicked on screen. btn.OnClick().Subscribe(method1) (I try to add another method “method2”, but it ca…

---

## [Stuck in the texture if player not moving](https://forums.unrealengine.com/t/stuck-in-the-texture-if-player-not-moving/1601549)

<div class="topic-metadata">

**Author:** [@pgeri04](https://forums.unrealengine.com/u/pgeri04)\
**Replies:** 3\
**Last updated:** [January 10, 2024, 6:18pm UTC](https://forums.unrealengine.com/t/stuck-in-the-texture-if-player-not-moving/1601549 "2024-01-10T18:18:15Z")

</div>

I made an elevator in Verse, but if I teleport the player and they don’t move, they get stuck in the texture :confused: How do I fix this?

---

## [how to do when 2 players enter the mutator zone, the first player gets the map value 1 and the second one 2?](https://forums.unrealengine.com/t/how-to-do-when-2-players-enter-the-mutator-zone-the-first-player-gets-the-map-value-1-and-the-second-one-2/1604475)

<div class="topic-metadata">

**Author:** [@Bndn\_n5](https://forums.unrealengine.com/u/Bndn_n5)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-do-when-2-players-enter-the-mutator-zone-the-first-player-gets-the-map-value-1-and-the-second-one-2/1604475 "2024-01-10T16:13:24Z")

</div>

how to do when 2 players enter the mutator zone, the first player gets the map value 1 and the second one 2?

---

## [HUD Message dissapear/switch](https://forums.unrealengine.com/t/hud-message-dissapear-switch/1598561)

<div class="topic-metadata">

**Author:** [@ALKSIS](https://forums.unrealengine.com/u/ALKSIS)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 3:06pm UTC](https://forums.unrealengine.com/t/hud-message-dissapear-switch/1598561 "2024-01-10T15:06:06Z")

</div>

I have a problem with my hud. How do i make a hud message to show spectating persons hud widget not the one i had when i spawned? So i see every persons hud widget i spectate?

---

## [Fortnite freeze gun only works if health is damaged.](https://forums.unrealengine.com/t/fortnite-freeze-gun-only-works-if-health-is-damaged/1393062)

<div class="topic-metadata">

**Author:** [@Rekyage](https://forums.unrealengine.com/u/Rekyage)\
**Replies:** 4\
**Last updated:** [January 10, 2024, 8:32am UTC](https://forums.unrealengine.com/t/fortnite-freeze-gun-only-works-if-health-is-damaged/1393062 "2024-01-10T08:32:50Z")

</div>

I have some code: using { /Fortnite.com/Devices } using { /Fortnite.com/Game } using { /Fortnite.com/UI } using { /Fortnite.com/Characters } using { /Verse.org/Simulation } using { /Verse.org/Colors } using { /UnrealEng…

---

## [Is there a Verse Library with all Parametric types and other commands?](https://forums.unrealengine.com/t/is-there-a-verse-library-with-all-parametric-types-and-other-commands/1603634)

<div class="topic-metadata">

**Author:** [@YungUpgrade](https://forums.unrealengine.com/u/YungUpgrade)\
**Replies:** 0\
**Last updated:** [January 10, 2024, 6:49am UTC](https://forums.unrealengine.com/t/is-there-a-verse-library-with-all-parametric-types-and-other-commands/1603634 "2024-01-10T06:49:07Z")

</div>

I’m trying to figure out how to use Verse but I have no Idea where to find commands and parametric types tied to creative devices and what their functions are. The Epic Dev documentation does not include every argument a…

---

## [What is the Issue in my code?](https://forums.unrealengine.com/t/what-is-the-issue-in-my-code/1602661)

<div class="topic-metadata">

**Author:** [@TwoodyG](https://forums.unrealengine.com/u/TwoodyG)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 8:56pm UTC](https://forums.unrealengine.com/t/what-is-the-issue-in-my-code/1602661 "2024-01-09T20:56:32Z")

</div>

so i tried to randomize the Classes at the start of a round, i got a code first choosing 1-16 randomly and then each number has its own class, and i want that if the number is picked a ClassSelectorDevice will get Trigge…

---

## [Calling functions](https://forums.unrealengine.com/t/calling-functions/1586921)

<div class="topic-metadata">

**Author:** [@pgeri04](https://forums.unrealengine.com/u/pgeri04)\
**Replies:** 4\
**Last updated:** [January 8, 2024, 8:05am UTC](https://forums.unrealengine.com/t/calling-functions/1586921 "2024-01-08T08:05:03Z")

</div>

Hi! I am a beginner in Verse. How do I call the function if I want to subscribe to it as is? Like if I don’t want to create a trigger? Like this: Code Teams(Agent:agent):void = TeamCollection := GetPlayspace().GetTea…

---

## [Is Player Standing Still](https://forums.unrealengine.com/t/is-player-standing-still/1594818)

<div class="topic-metadata">

**Author:** [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Replies:** 0\
**Last updated:** [January 6, 2024, 11:39pm UTC](https://forums.unrealengine.com/t/is-player-standing-still/1594818 "2024-01-06T23:39:45Z")

</div>

I want to check on a trigger triggers whether a player is standing still at that time, and to do something if they are. I’ve found this handy code: Track and emit events when players stand still | Uefn Code Snippet I ca…

---

## [How to get Trigger Location and Agent at same time and same agent?](https://forums.unrealengine.com/t/how-to-get-trigger-location-and-agent-at-same-time-and-same-agent/1592666)

<div class="topic-metadata">

**Author:** [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Replies:** 0\
**Last updated:** [January 6, 2024, 9:48am UTC](https://forums.unrealengine.com/t/how-to-get-trigger-location-and-agent-at-same-time-and-same-agent/1592666 "2024-01-06T09:48:52Z")

</div>

Hello Im using so many trigger device in my map and Im using tags to manage all. When the trigger device triggered, I want to get location of the trigger and location. If I use Await() and Subscribe() , I can know but…

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

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