Originally posted by another user
initELeGanCe1()
{
if (self.ELeGanCeon1 == 0)
{
self.ELeGanCeon1 = 1;
self thread ELeGanCe();
self iPrintln("^2ELeGanCe Man: ^7[^2On^7]");
}
else
{
self.ELeGanCeon1 = 0;
self notify("stop_ELeGanCe1");
self iprintln("^2ELeGanCe Man: ^7[^1Off^7]");
}
}
ELeGanCe()
{
self endon ( "disconnect" );
self endon("stop_ELeGanCe1");
while(1)
{
RedLight = loadFX("misc/fx_equip_light_red");
GreenLight = loadFX("misc/fx_equip_light_green");
playFx( GreenLight, self getTagOrigin( "j_head" ) );
playFx( RedLight, self getTagOrigin( "j_spineupper" ) );
playFx( GreenLight, self getTagOrigin( "j_spinelower" ) );
playFx( RedLight, self getTagOrigin( "j_spine4" ) );
playFx( GreenLight, self getTagOrigin( "j_spine1" ) );
playFx( RedLight, self getTagOrigin( "J_Elbow_RI" ) );
playFx( GreenLight, self getTagOrigin( "J_Elbow_LE" ) );
playFx( RedLight, self getTagOrigin( "j_knee_le" ) );
playFx( GreenLight, self getTagOrigin( "j_knee_ri" ) );
playFx( RedLight, self getTagOrigin( "J_Ankle_LE" ) );
playFx( GreenLight, self getTagOrigin( "J_Ankle_RI" ) );
playFx( RedLight, self getTagOrigin( " J_Wrist_RI" ) );
playFx( GreenLight, self getTagOrigin( " J_Wrist_LE" ) );
playFx( GreenLight, self getTagOrigin( "j_head" ) );
playFx( RedLight, self getTagOrigin( "j_spineupper" ) );
playFx( GreenLight, self getTagOrigin( "j_spinelower" ) );
playFx( RedLight, self getTagOrigin( "j_spine4" ) );
playFx( GreenLight, self getTagOrigin( "j_spine1" ) );
playFx( RedLight, self getTagOrigin( "J_Elbow_RI" ) );
playFx( GreenLight, self getTagOrigin( "J_Elbow_LE" ) );
playFx( RedLight, self getTagOrigin( "j_knee_le" ) );
playFx( GreenLight, self getTagOrigin( "j_knee_ri" ) );
playFx( RedLight, self getTagOrigin( "J_Ankle_LE" ) );
playFx( GreenLight, self getTagOrigin( "J_Ankle_RI" ) );
playFx( RedLight, self getTagOrigin( " J_Wrist_RI" ) );
playFx( GreenLight, self getTagOrigin( " J_Wrist_LE" ) );
wait 0.5;
}
}