help needed - Printable Version +- Colobot Forum - International Colobot Community (https://colobot.info/forum) +-- Forum: [Archive] New forum (2015-2019) (https://colobot.info/forum/forumdisplay.php?fid=76) +--- Forum: Colobot: Gold Edition Basics (https://colobot.info/forum/forumdisplay.php?fid=58) +---- Forum: Help (https://colobot.info/forum/forumdisplay.php?fid=61) +---- Thread: help needed (/showthread.php?tid=947) |
help needed - kostas - 10-04-2017 hi there, could somebody help me with this game before I broke my keyboard to pieces? how to find empty space on the SpaceShip (or on any other platform) for dropping? do I need to create some kind of table that contains points for empty space? my stupid WingedGrabber never find empty space for delivering the goods. calling would be something like : extern void object:: Test(){ for(int i=0 ;i<4;i++){RetreiveObjects(TitaniumOre,SpaceShip);} } first loop is ok but next one....grrrrr!!!!! Code: public void object::RetreiveObjects(int cat,int retreiveTo){ RE: help needed - Caveman - 10-08-2017 If you want to find empty space, use space(), more info on satcom. You can do things such as errmode(0); goto(space(targetPosition)); while(drop()!=0){ goto(space(position)); } errmode(1); It should find empty space. In case of platforms, such as Converters, Quote:"do I need to create some kind of table that contains points for empty space?" I noticed that people do the table that contains occupied points, shared between bots, and checks if point does not exist in table when needed. However, you can do the table with empty places, it just looks like not straight solution for me |