zombiesDance()
{
self endon("disconnect");
self endon("death");
self endon("stop_dance");
if(self.zombie_dance == false)
{
self iPrintlnBold( "Zombie Are: ^5Dancing" );
self.zombie_dance = true;
for(;
{
zombies = GetAiSpeciesArray( "axis", "all" );
for( i = 0;i < zombies.size;i++ )
{
if(zombies.size == 1){self.zombie_dance = false; self notify("stop_dance");}//This is to turn it off with last zombie. If we don't it will cause some lag. We don't like lag!.
zombies[i] allowedStances( "crouch" );
wait .1;
}
}
}
else
{
self iPrintlnBold( "Zombie Are: ^5Not Dancing" );
self.zombie_dance = false;
zombies = GetAiSpeciesArray( "axis", "all" );
for( i = 0;i < zombies.size;i++ )
{
zombies[i] allowedStances( "stand" );
}
self notify("stop_dance");
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.