Page 1 of 1

AI kill thread problem

Posted: Thu Feb 26, 2004 5:30 am
by Splaetos
ok with this thread....


thread allies_kill_target $VIP


I call...

Code: Select all

allies_kill_target:
	
	if !(isalive $VIP)
		teamwin allies
	else
	waitframe
	
end
The AI is set up in game with the $targetname VIP...
When I play alone as ally and kill him, the game doesnt end.

Shouldnt it end since //level waittill roundstart is commented out?

Is my code wrong? any suggestions?

Re: AI kill thread problem

Posted: Thu Feb 26, 2004 6:27 am
by omniscient
try

Code: Select all

allies_kill_target:
	
	if !(isalive $VIP){
		teamwin allies
	else
	waitframe
	
end
}

try this

Posted: Thu Feb 26, 2004 7:43 am
by tltrude
Try this:

Code: Select all

allies_kill_target: 
    
   while (isalive $VIP)
      waitframe
   teamwin allies  
    
end 

Posted: Thu Feb 26, 2004 2:55 pm
by Splaetos
Thanks guys, used the second one, worked like a charm =)

now if only i could get him to shoot without using bots =)

its ok as it is tho.