# How to use \<decides\> method

**URL:** <https://forums.unrealengine.com/t/how-to-use-decides-method/1676023>\
**Category:** Verse\
**Tags:** unreal-engine, fortnite-creative, question\
**Created:** [February 9, 2024, 9:55am UTC](https://forums.unrealengine.com/t/how-to-use-decides-method/1676023 "2024-02-09T09:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zengo.Tomi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zengo.Tomi](https://forums.unrealengine.com/u/Zengo.Tomi)\
**Post date:** [February 9, 2024, 9:55am UTC](https://forums.unrealengine.com/t/how-to-use-decides-method/1676023/1 "2024-02-09T09:55:46Z")

</div>

Hi There!

I would like to use a method what has a keyword. But I can’t. I know I need to validate first in an if. I did it, but still not work.

Here an example:

```auto
TestMethod(Player : player)<decides> : void=
        return Player

```

and I would like to use this method in another method.

I tried this:

```auto
TestMethod2(Player : player) : void=
        if(CurrentPlayer := TestMethod[Player]):
                Print("Work")
        else:
                Print("Do not work")

```

But I got an error to [Player] with a:

This invocation calls a function that has the ‘no\_rollback’ effect, which is not allowed by its context.(3512)

error code. What is the problem?

Thank you for any reply.

---

<div class="post-metadata">

**Author:** ![Monnapse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monnapse/32/911980_2.png) [@Monnapse](https://forums.unrealengine.com/u/Monnapse)\
**Post date:** [April 26, 2024, 2:21pm UTC](https://forums.unrealengine.com/t/how-to-use-decides-method/1676023/2 "2024-04-26T14:21:02Z")

</div>

You need to add `<transacts>` effect and change the return type to player. You can read more about it here: [Verse Language Quick Reference](https://dev.epicgames.com/documentation/en-us/uefn/verse-language-quick-reference#effectspecifiers)
