# Verse Compiler and UEFN Crash caused by an optional argument on a creative device extension function

**URL:** <https://forums.unrealengine.com/t/verse-compiler-and-uefn-crash-caused-by-an-optional-argument-on-a-creative-device-extension-function/1257262>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [August 10, 2023, 11:28pm UTC](https://forums.unrealengine.com/t/verse-compiler-and-uefn-crash-caused-by-an-optional-argument-on-a-creative-device-extension-function/1257262 "2023-08-10T23:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sclark39](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sclark39](https://forums.unrealengine.com/u/sclark39)\
**Post date:** [August 10, 2023, 11:28pm UTC](https://forums.unrealengine.com/t/verse-compiler-and-uefn-crash-caused-by-an-optional-argument-on-a-creative-device-extension-function/1257262/1 "2023-08-10T23:28:39Z")

</div>

Including this code will cause a crash in my project every time it tries to build Verse code:

```auto
(This:creative_device).WaitForPlayerActiveState( Player : player, Active:logic, ?PollRate :float = 0.2 )<suspends>:void=
    loop:
        if:
            FortChar := Player.GetFortCharacter[]
            not logic{FortChar.IsActive[]} = Active
        then:
            Sleep(PollRate)
        else:
            break
    

```

If I hardcode PollRate instead of it being an optional, this function builds fine. It seems to be specifically an issue with the `?PollRate :float = 0.2` portion of this code block.

---

<div class="post-metadata">

**Author:** ![Stevie-Moon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stevie-moon/32/701656_2.png) [@Stevie-Moon](https://forums.unrealengine.com/u/Stevie-Moon)\
**Post date:** [August 10, 2023, 11:30pm UTC](https://forums.unrealengine.com/t/verse-compiler-and-uefn-crash-caused-by-an-optional-argument-on-a-creative-device-extension-function/1257262/2 "2023-08-10T23:30:44Z")

</div>

@sclark39 Thank you for your report! We would like to look into this further, would you be able to submit a bug report using the form available here? [Fortnite Creative](https://creative.fortnite.com/s/bug-report)
