PDA

View Full Version : Getting AI to ignore player



camEG
04-30-2004, 12:38 AM
I made a copy of cover.lua in the characters/personalities folder and deleted some lines and got the merc to just stand there and sometimes look at me but sometimes not (not sure why) but he wont attack, anything, even if he is attacked.. I am sure its because of something I deleted (i know no programming, just educated guessed what to delete).

Anyone with the know how can possibly make a script that will let friendly AI ignore the player and just hit up anchors but also attack hostiles?

[This message was edited by camEG on Fri April 30 2004 at 12:54 AM.]

camEG
04-30-2004, 12:38 AM
I made a copy of cover.lua in the characters/personalities folder and deleted some lines and got the merc to just stand there and sometimes look at me but sometimes not (not sure why) but he wont attack, anything, even if he is attacked.. I am sure its because of something I deleted (i know no programming, just educated guessed what to delete).

Anyone with the know how can possibly make a script that will let friendly AI ignore the player and just hit up anchors but also attack hostiles?

[This message was edited by camEG on Fri April 30 2004 at 12:54 AM.]

PetarKotevski
04-30-2004, 01:26 AM
AI is friendly to anyone that has the same species id as him. He is even friendlier with anyone that has the same group is as him.

The player has group id 0 and species id 0. If you make an AI have the same, it will be friendly to the player but hostile to anyone with a different species.

Default species of the human mercs is 1. The mutants are 100. The number does not matter, you can have as many species as you want, they will all fight each other.

You can find the species property in the archetype properties.

camEG
04-30-2004, 01:37 AM
im such a newb, all this time trying to figure it out and all i had to do is make them in group 0... thank you so mutch!!