Hello! I've decided to try my hand at script development, and run into an issue that I can't seem to resolve. I am trying to get a list of nearby game objects that can be examined, but when I use:
List<GameObject> examinables = GameObjects.all(o -> o.hasAction("Examine"));
I get an empty list, despite there being plenty of GameObjects with examine options. Is "Examine" not considered an action? Do i need to do something else? To be clear, this function works with any other action such as "Use" and "Chop down."
Furthermore, when I use GameObject.getActions() on, say a tree GameObject for instance, it returns an array that looks like ["Chop down", null, null, null, null]. Is this normal as well? Even weirder, I can still GameObject.interact("Examine") that tree and it works perfectly.
I'd be grateful if anyone could point me in the right direction. Thank you!