the space() function - 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/Ceebot and Other EPSITEC Games (https://colobot.info/forum/forumdisplay.php?fid=54) +---- Forum: Help (https://colobot.info/forum/forumdisplay.php?fid=57) +---- Thread: the space() function (/showthread.php?tid=555) |
the space() function - Rowery na Księżycu - 01-05-2015 The space() function. In colobot 1.9 /pl. I've read its SatCom description. Then I did some tests. The results made no sense. It returned points that did not fulfil the requirements specified by the function parameters. Or points points inside buildings. Does someone know how it really works? RE: the space() function - krzys_h - 01-05-2015 I never fully understood parameters of this function. If you use all default values it'll find some free space, enough to leave a portable object there. You can try with this function I've made a long time ago. https://github.com/krzys-h/colobot-superbase/blob/master/levels/custom/SuperBase/level001/SuperBase.txt#L241-L256 It's not perfect, you can clearly see the circle shape it uses to find positions. |