Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Some scripting help please

$
0
0
I have this code that I wrote:
Code:
bool LookForElevatorPistons()
{
	bool FoundPistons = false;
	
	
	for(ListIndexCounter = 0; ListIndexCounter <= BlocksOnGrid.Count; ListIndexCounter++)
	{
	
	}
	
	
	return FoundPistons;
}
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

Viewing all articles
Browse latest Browse all 903

Trending Articles