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?
I tried to use GetRandomInt but I kept getting red squiggles, I don’t know why this is happening
it looks very complicated
You can’t call a function from here, you have to call it from OnBegin, or inside a block statement :
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 :
var Rotation : rotation = IdentityRotation()
This will compile because IdentityRotation() has the <converges> effect specifier.
# Makes the identity `rotation`.
IdentityRotation<native><public>()<converges>:rotation

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
Thank you for helping me out. I appreciate it!