dokato Posted March 20, 2015 Share Posted March 20, 2015 (edited) How can i let the bot do something in my house (from construction). if(/*I'm in the house (what code?)*/){ ... } what should i write there? because i noticed the Area coördinates change or are my eyes malfunctioning? Edited March 20, 2015 by dokato Quote Link to comment Share on other sites More sharing options...
Precise Posted March 20, 2015 Share Posted March 20, 2015 (edited) How can i let the bot do something in my house (from construction). if(/*I'm in the house (what code?)*/){ ... } what should i write there? because i noticed the Area coördinates change or are my eyes malfunctioning? In house area is dynamic, because of this, there are methods for this included in the API to combat this I would post them but on my phone at the moment.EDIT: code: getMap().isInHouse(); Edited March 20, 2015 by Precise Quote Link to comment Share on other sites More sharing options...
Apaec Posted March 20, 2015 Share Posted March 20, 2015 if(map.isInHouse()) { blah } Quote Link to comment Share on other sites More sharing options...
dokato Posted March 20, 2015 Author Share Posted March 20, 2015 Thx guys 1 Quote Link to comment Share on other sites More sharing options...