Page 1 of 1

AI! YAY!!!!

Posted: Thu Jun 14, 2012 8:11 am
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 :)

Re: AI! YAY!!!!

Posted: Sat Jun 16, 2012 5:52 pm
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...

Re: AI! YAY!!!!

Posted: Sat Jun 16, 2012 11:29 pm
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

Re: AI! YAY!!!!

Posted: Sun Jun 17, 2012 7:15 am
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

Re: AI! YAY!!!!

Posted: Sun Jun 17, 2012 7:00 pm
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.