Forum Discussion

LNATIONDEV's avatar
LNATIONDEV
MHCP Partner
6 months ago
Solved

Scripted Avatar NPCs

I'm looking at adding Scripted Avatar NPCs to my worlds. I'm looking at Meta Developers example 1 which should be suffice as I will know the coords the avatars should move. However with the example test script I get the following error:

"Failed to call method 'start' on script component instance: Error: Exception encountered running bridge method 'AgentLocomotionMoveToPath': Locomotion is not supported on this entity"

Any ideas on how to make this work? I've reported it as a bug to meta via the editor. 

  • Race condition, If I add a setTimeout around the locomotion.moveToPositions then the avatar moves as expected.

1 Reply

  • Race condition, If I add a setTimeout around the locomotion.moveToPositions then the avatar moves as expected.