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

FORT-1018228 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

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