Author Topic: Calculate start1 and start2 [Solved]  (Read 655 times)

Code: [Select]
for(%a=1;%a<3;%a++)
{
%start1 = %obj.getHackPosition();
%start2 = %obj.getPosition();
%startA = ("%start"@%a);
%isBrick = fluidBrickCheck(%obj,%startA);
talk(%startA);
if(%isBrick)
{
// talk("isBrick =" SPC %isBrick);
%canAct=1;
break;
}
}
%startA finds the right names of what I want it to call, but it's just a string names, so it doesn't actually call them. How do I make it actually do %start1 and %start2?
« Last Edit: July 27, 2013, 05:23:37 PM by tommybricksetti »

call(%startA[, arg1[, arg2[, ...[, argN]]]]);

Wow I forgot about %blah[%var];, thanks.