semanresu 0 Share Posted March 31 For example the cows or the hill giants occupy more than a single tile, is there any way to somehow figure out how large their width and depth is in tilesize? I've searched through the docs, but couldn't find anything relevant, only thing remotely relevant was GetModel().calculateModelArea(), but that returns a java geom area, rather than a dreambot area, which kinda makes it useless. Anyone got any ideas? Link to comment Share on other sites More sharing options...
fallacy87 8 Share Posted March 31 NPC cow = NPCs.closest("Cow"); if(cow != null) log("Cow Size:"+cow.getSize()); NPC hobgoblin = NPCs.closest("Hobgoblin"); if(hobgoblin != null) log("Goblin Size: " +hobgoblin.getSize()); Quote 7:56:34 AM: [SCRIPT] Goblin Size: 1 7:56:34 AM: [SCRIPT] Cow Size : 2 However, if you look at the cow it looks like it is 2 tiles long and only 1 tile wide. Idk how accurate you are trying to make it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now