# Why am I getting red squiggles?

**URL:** <https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [October 17, 2023, 11:38am UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503 "2023-10-17T11:38:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LyssaSugarNya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lyssasugarnya/32/722321_2.png) [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Post date:** [October 17, 2023, 11:38am UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503/1 "2023-10-17T11:38:29Z")

</div>

I tried to use `GetRandomInt` but I kept getting red squiggles, I don’t know why this is happening

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/9/329ea51c3c2fe138db1368c111d83f0823a31649.png)  
The reason:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/f/93fe3fadf269945167d27eee57482f868e9b9d94.png)  
Do anybody know why this is happening?

---

<div class="post-metadata">

**Author:** ![Hoki885](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hoki885/32/764020_2.png) [@Hoki885](https://forums.unrealengine.com/u/Hoki885)\
**Post date:** [October 17, 2023, 1:09pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503/2 "2023-10-17T13:09:32Z")

</div>

it looks very complicated

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 17, 2023, 1:18pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503/3 "2023-10-17T13:18:30Z")

</div>

You can’t call a function from here, you have to call it from `OnBegin`, or inside a `block` statement :

```auto
var TieBreaker : int = 0
block:
    set TieBreaker = GetRandomInt(1,4)

```

That being said, be aware that what you put inside `blocks` are called before `OnBegin`

If you want to dig a bit more, some few functions are allowed to be called this way, for example :

```auto
var Rotation : rotation = IdentityRotation()

```

This will compile because `IdentityRotation()` has the `<converges>` effect specifier.

```auto
# Makes the identity `rotation`.
        IdentityRotation<native><public>()<converges>:rotation

```

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/f/6dfff8501770472b1dd4568dd03b41097aac6d38.png)

The only problem is that this specifier is reserved to native functions, and all other specifiers, including the default `<no_rollback>`, include the `<diverges>` effect by default

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/f/2bf3e01a439d9a269e43b8d50c8bc5da3a2edef1.png)

---

<div class="post-metadata">

**Author:** ![LyssaSugarNya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lyssasugarnya/32/722321_2.png) [@LyssaSugarNya](https://forums.unrealengine.com/u/LyssaSugarNya)\
**Post date:** [October 17, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-red-squiggles/1335503/4 "2023-10-17T13:55:47Z")

</div>

Thank you for helping me out. I appreciate it!
