AI! YAY!!!!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
computernerd
Lance Corporal
Posts: 14
Joined: Sun Apr 26, 2009 8:09 pm

AI! YAY!!!!

Post by computernerd »

Hey all, so I've got a script where Grillo follows me through m2l2a. Everything works; he follows me around and does everything I want him to; however, I decided to go a bit deeper and see if I could make him follow me without killing anyone and without anyone shooting him.

Mostly through a lot of trial and error, I've partially succeeded., I used enableEnemy = 0 and threatbias ignoreme to hopefully make him invisible and stop shooting. He doesn't notice the enemy, but the enemy notice him, they just don't shoot (i.e. the card players get up and face him). I've scoured the friendly, spawner, and ai globals multiple times, but I still haven't been able to discover a method to make it so that the enemy really doesn't notice him.

I looked at Breakthrough's FinalEscape.scr because of the part where you follow Klaus to the trucks, but then I realized he doesn't have a friendtype = 0, he just has pathnodes. To test this, I set my guy's friendtype to 0 and I just push him along. Using that method, no one notices him, so it's definitely to do with the friendtype.

My question is, is there anyway to do this using friendtype = 1, or am I going to manually set the pathnodes for him?

Any input at all would be greatly appreciated :)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: AI! YAY!!!!

Post by jv_map »

Hi there! You might be able to set his team to 'german'. That'll make him an enemy, formally, but if you get him to not attack you, who cares? :) The card players will certainly ignore anyone pretending to be as german as them...
Image
computernerd
Lance Corporal
Posts: 14
Joined: Sun Apr 26, 2009 8:09 pm

Re: AI! YAY!!!!

Post by computernerd »

I actually tried that the other day, and you're right, they do ignore him, but then I can't ever raise my weapon for risk of being shot by him. So I still have some kinks to work out, but so far, I'm at least happy that I found one method :p

Thanks for replying though, I was afraid (looking at the rest of this forum) that this thread would gather dust for a long time xD
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: AI! YAY!!!!

Post by jv_map »

Yeah, it's not as busy as it used to be. I'm keeping the forums online in the hope that the content is still useful for someone, somewhere :)

Don't know why he attacks you when his .enableEnemy is 0.. hmm.. have to use some trial & error I think. Have a look at the available commands for AI & Player here: http://gronnevik.se/rjukan/uploads/Main ... asses.html
Image
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Re: AI! YAY!!!!

Post by neillomax »

[quote="jv_map"]Yeah, it's not as busy as it used to be. I'm keeping the forums online in the hope that the content is still useful for someone, somewhere :)

and there are those of us that appreciate it. time comes when you decide to jump ship please make these available as downloads. would hate to lose them.
Post Reply