PDA

View Full Version : Question about AI



lemurjim
01-15-2010, 03:00 PM
how do I make the enemy AI only attack you if you fire a weapon

wookash_b
01-15-2010, 04:52 PM
Hi, lemurjim. Welcome to the forums. This question and some of your previous ones will be clear to you when you watch the video tutorials (Techland ones, and Alex's ones). You can find them on cojmodding.com. Also please read the forums before asking about things that have already been asked about and solved. And there is always the search engine on the forums you can use.

lemurjim
01-15-2010, 05:02 PM
Yeah, i'm giving the tutorials a watch

wookash_b
01-15-2010, 05:32 PM
You should check out the ones by Alex. Well done, commented. It is all you need to get started http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

lemurjim
01-16-2010, 07:49 AM
I can't find anything concerning making an enemy AI only attack you if you fire a gun... I have watched all the AI related tutorials, and searched the forum, so if you know how, then I would be grateful if you could tell me, if you know of a specific tutorial or thread about this, then point me in the right direction, thanks.

wookash_b
01-16-2010, 08:15 AM
Here you go:

http://forums.ubi.com/eve/foru...441031997#3441031997 (http://forums.ubi.com/eve/forums/a/tpc/f/3901002687/m/4071070997?r=3441031997#3441031997)

It describes how to set enemy AI so that it will become aggressive after player has damaged them. If you want AI to react to only gun fire then try playing with Alarm Levels of the AI.

Please search the forums, or even read the threads first. You will get a better understanding how things are done in the editor http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

lemurjim
01-16-2010, 08:24 AM
thank you, most kind

lemurjim
01-16-2010, 09:12 AM
here's a strange problem. when i try to double click on "aTargets<NewAI[]>" it doesn't let me make a new item

lemurjim
01-16-2010, 09:14 AM
don't worry, I solved it

Luka1324
05-02-2011, 12:20 PM
Is it possible to set the enemy AI who kill you with one bullet when you are not moving, but not in duel?

cr1m3
05-04-2011, 02:12 PM
Hi, i've found a way to kill the player when he walk or duck , swim or is in duel.
But you need to shoot on enemy then he'll kill you in one shot if you're walking or ...

Not exactly the good solution for you but may help.

http://img94.imageshack.us/img94/5278/killplayercnd.jpg (http://img94.imageshack.us/i/killplayercnd.jpg/)

You can test this damage action with multiple conditions or with other conditions (cnd)like cnd_objectHealth or cnd_percentDestroyed ...

You can kill the player with other actions like instantAction> InstantExplosion on player but act damage should be better.

You can set the AI shot deviation to be sure he'll hit you

Luka1324
05-06-2011, 04:58 PM
When player appear Ai use bhv_ShootAt and when he fired the first bullet activates act_Damage
and player is dead. Looks like it was shot with a single bullet. Not quite exactly as I wanted, but it is not so bad.

tnx for help