Yeah, GetAgent[]
in npc_behavior
seems broken after the last update. There’s a similar thread here: Verse AI Pathing broken after Round 1 in 33.30 - #8 by Flak
I found a bad workaround to get the agent by:
- Make an interface with a method signature of something like
NagivateAgent(InAgent : agent)
- Inherit your interface in your custom npc_behavior
- Move your
OnBegin
logic toNavigateAgent
- Subscribe to your npc spawner device spawn event
- On spawn, get the agents behavior from the agent
- Cast the behavior to your interface
- Call
NavigateAgent
, passing in the agent fromSpawnedEvent
Even with the agent though, NagivateTo
still seems to be broken.
Edit: I just tested this morning though and navigation seems to be working again