Forum Discussion

varunastra.hw's avatar
6 months ago

"Grabbable not found for entity while processing set who can grab." How to fix this error?

const grabbable = this.easterEggGrabbables[randomIndex].as(hz.GrabbableEntity);
grabbable.setWhoCanGrab([player]);

  console.log(`Entity interaction mode: ${grabbable.interactionMode.get()}`);
  console.log(`Entity name: ${grabbable.name.get()}`);



I have this simple piece of code but I get the error mentioned in the title. grabbable is valid and it logs the interactionMode and name, but can't setWhoCanGrab

Please help

1 Reply