I have this code that I wrote:
I would like it to cycle on all blocks found at the BlocksOnGrid list and that if they meet two conditions of being a specific type (in this case piston) and have specific string in their name then they will be added to a list that hold all blocks of selected...
Some scripting help please
Code:
bool LookForElevatorPistons()
{
bool FoundPistons = false;
for(ListIndexCounter = 0; ListIndexCounter <= BlocksOnGrid.Count; ListIndexCounter++)
{
}
return FoundPistons;
}
Some scripting help please