AI kill thread problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

AI kill thread problem

Post 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?
When I am king, you will be first against the wall~
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Re: AI kill thread problem

Post by omniscient »

try

Code: Select all

allies_kill_target:
	
	if !(isalive $VIP){
		teamwin allies
	else
	waitframe
	
end
}
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

try this

Post by tltrude »

Try this:

Code: Select all

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

Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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.
When I am king, you will be first against the wall~
Image
Post Reply