From Game Editor
cloneindex is an actor variable that is used to differentiate clones. In scripts, cloneindex can be used in a switch, allowing for individualized clone action.
switch(cloneindex)
{
case 0: // first clone
r=255;
b=0;
g=0;
break;
case 1; // second clone
r=0;
b=255;
g=0;
break;
case 2: // third clone
r=0;
b=0;
g=255;
break;
}

![[]](wiki/skins/blender/open.png)