New Warnings in Verse Code

This started to appear as a warning in my code

This expression in the right operand of ‘set … = …’ can fail, but the meaning of failure here will change in a future version of Verse. To preserve the current meaning of this code in future versions of Verse, you should move the expression that can fail outside the ‘set’.
For example, if you have the expression:
set Variable = ExpressionThatMightFail,
you can change it to the following two expressions to preserve the meaning:
Value := ExpressionThatMightFail
set Variable = Value

For example with this code:

if(set LastTick = AllMultipleAgentEliminationTick[EliminatingAgent]):

So, just to be clear, the correct way should be this?

if(NewTick := AllMultipleAgentEliminationTick[EliminatingAgent], set LastTick = NewTick):

With this one, the warning dissapears, but I don´t see the improvement of this

1 Like

Yes this fixes it. This is just a safety feature so future updates of Verse won’t mess up your code

1 Like

This Fixes the Issue,
also this issue is in UEFN Tutorial