October 13, 201510 yr Does anyone know/has anyone used a method that checks whether a GroundItem is reachable or not? For example clicking something that's on the other side of a closed door should say "I can't reach that!" does anybody know a method that recognises the player cannot reach the item? Thanks in advance!
October 13, 201510 yr GroundItem g = groundItems.closest("bobrocket is a nub"); if (g != null && g.exists() && map.canReach(g)) { //blah } apa
October 13, 201510 yr Author GroundItem g = groundItems.closest("bobrocket is a nub"); if (g != null && g.exists() && map.canReach(g)) { //blah } apa map.canReach() just what I was looking for, thanks!!
October 13, 201510 yr GroundItem g = groundItems.closest("bobrocket is a nub"); if (g != null && g.exists() && map.canReach(g)) { //blah } apa
Create an account or sign in to comment