Thanks for that, I'll show you the actual code I'm working from, since that will allow you to help me best.
if you can show me how to plug in the correct array coding so I can type up the array items and then move on to the actual threads themselves, that'd be great.
I'm confused at the moment by the question of if I need to specify all the array items within the same thread that the array is called or if I can do it seperately.
Cycle code.
[php]
cycleWeapons()
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
timesDone = 0;
for(;

{
self waittill( "dpad_right" );
self takeAllWeapons();
for ( i = timesDone; i < timesDone + 10; i++ )
{
self _giveWeapon( level.weaponList[i], 0);
wait (0.05);
if (i >= level.weaponList.size)
{
timesDone = 0;
}
}
timesDone += 10;
}
}
[/php]
Custom class code:
[php]
for (i = 0; i < 10; i++)
{
self setPlayerData( "customClasses", i, "name", "Text" ); //Class name
self setPlayerData( "customClasses", i, "weaponSetups", 0, "weapon", "itemName" ); //Primary Gun
self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 0, "itemName" ); //Primary Gun Attachment 1
self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 1, "itemName" ); //Primary Gun Attachment 2
self setPlayerData( "customClasses", i, "weaponSetups", 0, "camo", "itemName" ); //Primary Camo
self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "itemName" ); //Secondary Gun
self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 0, "itemName" ); //Secondary Gun Attachment 1
self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 1, "itemName" ); //Secondary Gun Attachment 2
self setPlayerData( "customClasses", i, "weaponSetups", 1, "camo", "itemName" ); //Secondary Camo
self setPlayerData( "customClasses", i, "perks", 0, "itemName" ); //Equipment
self setPlayerData( "customClasses", i, "perks", 1, "itemName" ); //Perk 1
self setPlayerData( "customClasses", i, "perks", 2, "itemName" ); //Perk 2
self setPlayerData( "customClasses", i, "perks", 3, "itemName" ); //Perk 3
self setPlayerData( "customClasses", i, "perks", 4, "itemName" ); //Deathstreak
self setPlayerData( "customClasses", i, "specialGrenade", "itemName" ); //Special Grenade
[/php]
This is obviously the meshing of two different mods, but I think once it's been combined with text on the screen it'll be a nice on the fly class cycler.
EDIT: After some testing via trial and error bomb21, your method doesnt seem to work, I've tried every one of them and the script ends due to syntax error. I have verified where it ends by outputting a message to the screen.
This is my code so far after attempting to do this myself.
[php]
cycleClasses()
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "5", "+actionslot 2" );
timesDone = 0;
for(;

{
self waittill( "5" );
for ( i = timesDone; i < timesDone + 10; i++ )
{
class[0] = "Custom1";
class[1] = "Custom2";
self thread class[i]();
wait (0.05);
if (i >= 10)
{
timesDone = 0;
}
}
timesDone += 10;
}
}
[/php]
If anyone has any ideas please share!