posted an update

I found a bug after submission, there is a race condition to get the NpcPlayer within the published world, because I cannot update the world based on the competition rules I'll add the fix here and update the dev.to tutorial.

The fix is within the start function for DirectNPCRunner and RandomNPCRunner scripts you need the wrap the tryGetPlayer promise in a timeout:

    this.async.setTimeout(() => {
      this.entity.as(Npc).tryGetPlayer().then(player => this.npc = player);
    }, 3000);

Log in or sign up for Devpost to join the conversation.