movement_types no longer being recognized for npc navigation

Summary

When using ?MovementType on navigatable.NavigateTo()
You will get this error after building verse even tho /Fortnite.com/AI is imported:
new_npc_behavior_basic.verse(14,51, 14,65): Script error 3506: Unknown identifier movement_types. Did you forget to specify using { /Fortnite.com/AI }

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

  • create a basic npc behavior from templates
  • add this in the OnBegin
OnBegin<override>()<suspends>:void=
        if(NPC:=GetAgent[ ].GetFortCharacter[ ], Nav:=NPC.GetNavigatable[]):
            Target:=MakeNavigationTarget(vector3{X:=0.0, Y:=0.0, Z:=0.0})
            Nav.NavigateTo(Target, ?MovementType:=movement_types.Running)
  • Build verse

Expected Result

Should build with no errors

Observed Result

You will get an error saying we should import
using { /Fortnite.com/AI }
while it is imported at line 1 of the file

Platform(s)

PC (verse)

Upload an image


movement_types_error.png

This doesn’t fix the recognition issue. But there is a way to get the verse to verify correctly. Check out this post for details:

1 Like

I can confirm this breaks older code before 38.00 and requires specifically adding the movement library and then removing the specification before the type of movement. This does feel like somebody broke something though and it should work as it has always.

Hey @tuurdeman - there was an error from Verse causing this, and should be fixed as of 38.11 which went out 2 days ago. Can you confirm if your issue is fixed?

FORT-1018228’s status has changed to ‘Ready for QA’. A member of the QA department is investigating the issue.