0


Star Power From Mario!
Star Power
[CODE]
starPower()
{
self endon("death");
self iPrintlnBold("Star Power!");
tagArray[0] = "J_Spine1";
tagArray[1] = "j_knee_ri";
tagArray[2] = "j_knee_le";
tagArray[3] = "j_spine4";
tagArray[4] = "j_head";
while(1)
{
wait 1;
for(i=0;i<tagArray.size;i++)
{
self setMoveSpeedScale( 3 );
wait 0.1;
self EnableInvulnerability();
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_red , self, tagArray[i]);
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_green , self, tagArray[i]);
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_red , self, tagArray[i]);
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_green , self, tagArray[i]);
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_red , self, tagArray[i]);
wait 0.1;
PlayFxOnTag(fx_equip_tac_insert_light_green , self, tagArray[i]);
wait 0.1;
self DisableInvulnerability();
}
}
}
Last edited by zF A; 07-02-2013 at 04:58 PM.
Wont work. Where did the [i]); come from?
Yes it will, it came from the for statement.
*Edit*
It wouldn't work WITHOUT it.
Last edited by zF A; 07-02-2013 at 01:45 PM.
I didn't see that. But I fixed it so now the script is
for statement incorrectly used
No its not, its the description of the array
Can't, don't have my computer. You told me to make an array script so I did.
Bookmarks