RandomMoveArrayOfObjectsinXY

From Scripting

Jump to: navigation, search
global proc RandomMoveArrayOfObjectsinXY(string $NameList[], float $MaxVal) {
       //Author Nick Pisca 0001d 2009
	for ($x=0;$x<size($NameList);$x++) {
		if (`objExists $NameList[$x]`) {
			float $RandX = rand(-$MaxVal, $MaxVal);
			float $RandY = rand(-$MaxVal, $MaxVal);
			
			move -r $RandX $RandY 0 $NameList[$x];
		}
	}
} 


More information on translate transformations, read pages 55-67 in YSYT.

See also RandomMoveArrayOfObjects.

Personal tools