RemoveVectorArrayElement

From scripting
Revision as of 19:52, 24 April 2017 by Nickpisca (talk | contribs) (Created page with " global proc vector[] RemoveVectorArrayElement(vector $CurArr[],int $RemoveIndex) { vector $PR[]; int $PRCounter = 0; for ($p=0;$p<size($CurArr);$p++) { if ($p!=$Remo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
global proc vector[] RemoveVectorArrayElement(vector $CurArr[],int $RemoveIndex) {
	vector $PR[];
	int $PRCounter = 0;
	for ($p=0;$p<size($CurArr);$p++) {
		if ($p!=$RemoveIndex) {
			$PR[$PRCounter] = $CurArr[$p];
			$PRCounter++;
		}
	}
  	return $PR;
}


More information on vectors and arrays, read pages 12-16 in YSYT.