"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Posts
264
Respect
52Add +1
Forum Rank
Mr. Elemental
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!damage(){
damagetrig = getEnt("flooddamage","targetname");
zombies = getaispeciesarray("axis");
players = get_players();
on = self.time/10;
while(1){
for(k=0;k<zombies.size;k++){
if((zombies[k] IsTouching(damagetrig))){
zombies[k] dodamage(zombies[k].health + 666, zombies[k].origin );
}//end if statement
}//end for loop
for(i=0;i<players.size;i++){
if((players[i] IsTouching(damagetrig))){
players[i] dodamage(players[i].health +666, players[i].origin );
}//end if statment
}//end for loop
self.timen = self.time/20;
wait self.timen;
on = self.timen + on;
if(on == self.time){
break;
}//end if statement
}//end while loop
}//end damage method
for(k=0;k<zombies.size;k++)zombies = getaispeciesarray("axis");