10-04-2017, 12:50 PM
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!!!!!
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){
object item=radar(cat,0,360,50,1000);
if (this.energyCell==null){message(this.category + " reports : waiting for PowerCell");}
while(this.energyCell==null)
{wait(0.2);
}
move(-3);
message(this.category +" reports: 'object found'",DisplayInfo);
errmode(0);
while(goto(item.position)!=000)
{
wait(0.2);
message(this.category +" reports: waiting for space to clear ",DisplayInfo);
}
grab();
item=radar(retreiveTo);
message(this.category +" reports: retreiving object to the ship ",DisplayInfo);
while(goto(item.position)!=000)
{
wait(0.2);
message(this.category +" reports:waiting for landing space to clear ",DisplayInfo);
item=radar(retreiveTo);
}
if(drop(InFront)!=000)
{
message(this.category +" reports: impossible to drop here...moving on",DisplayInfo);
wait(0.2);
item=radar(retreiveTo);
turn(90);
move(2);
drop(InFront);
};
message(this.category +" reports: object retreived ",DisplayInfo);
}