Why does this gate not work?

Here’s the player harvesting stuff from the world:

  • the player has a small collision sphere
  • after pressing 1, any actor of the specified class caught inside will be asked for its Harvest (see above)
  • if the actor does not implement the Harvest function, nothing happens
  • the Berry Bush does implement it and if it’s Ready for Harvest it will send the Harvesting Actor the Sort Harvest message, which is implemented like so:

The above is just an example, sorting can be done much better and inventories are another topic altogether.

Image from Gyazo

Project link:

1 Like