Forums Gallery Downloads LOGIN |REGISTER

differences AI/Physics - Switch to game

Seeking artificial intelligence? Waypoint queries? Post it here!


 

User avatar
perceptionBow
Just getting started
Just getting started
 
Posts: 19
Member since: 01.11.2010, 16:37
Likes: 0

differences AI/Physics - Switch to game

Postby perceptionBow » 21.11.2011, 23:06

Hi I've made a flow graph for this AI behavior
1. select a weapon (LAW)
2. shoot at player for 5 sec
so if I click in the Editor the AI/Physics button it works fine, if Ctrl+G for 'Switch to game' it doesn't work. What I've to change?

Thanks
Attachments
Aishoot.jpg
User avatar
andrey_filantrop
Producer
Producer
 
Posts: 2065
Member since: 25.01.2010, 15:54
Location: Moscow, Russia
Likes: 57

Re: differences AI/Physics - Switch to game

Postby andrey_filantrop » 22.11.2011, 11:32

Use ai_ignore node in this case. Ignore at the beginning, hostile after shooting.
Loving God gives you Happiness, Knowledge, Strength and Freedom.
AURAYAMA on Crydev & AURAYAMA in Russia :)
Portfolio: AndreyFilantrop on deviantART
Life by FlowGraph!
User avatar
the_grim
Superstar Dolphin
Superstar Dolphin
 
Posts: 9884
Member since: 16.08.2004, 10:46
Location: Finland
Likes: 189

Re: differences AI/Physics - Switch to game

Postby the_grim » 22.11.2011, 12:15

Make sure you generate AI navigation so the AI is capable of detecting the player and shooting at him.
User avatar
perceptionBow
Just getting started
Just getting started
 
Posts: 19
Member since: 01.11.2010, 16:37
Likes: 0

Re: differences AI/Physics - Switch to game

Postby perceptionBow » 22.11.2011, 23:33

Thank you guys, I've fixed flow graph this way and it works great!
Only a doubt it's correct to connect AI:weaponSelect "done" to > "AI:Ignore" instead of "succeed"?
Attachments
Aishoot2.jpg
User avatar
andrey_filantrop
Producer
Producer
 
Posts: 2065
Member since: 25.01.2010, 15:54
Location: Moscow, Russia
Likes: 57

Re: differences AI/Physics - Switch to game

Postby andrey_filantrop » 23.11.2011, 07:56

No. Make this: misc start--->ai:ignore. Dont use ignore condition after weapon select. Also you may add here ai:autodisable input ''off''. About output succeed or done - better to use succeed, but in this way when ignore is set - doesnt really matter. Use "succeed" by default :)
Loving God gives you Happiness, Knowledge, Strength and Freedom.
AURAYAMA on Crydev & AURAYAMA in Russia :)
Portfolio: AndreyFilantrop on deviantART
Life by FlowGraph!
User avatar
perceptionBow
Just getting started
Just getting started
 
Posts: 19
Member since: 01.11.2010, 16:37
Likes: 0

Re: differences AI/Physics - Switch to game

Postby perceptionBow » 23.11.2011, 20:18

Really really thanks! It works well.
Just to have a confirm I've added below the flow graph done once followed your previous post.

Aishoot3.jpg

Thank you again
User avatar
andrey_filantrop
Producer
Producer
 
Posts: 2065
Member since: 25.01.2010, 15:54
Location: Moscow, Russia
Likes: 57

Re: differences AI/Physics - Switch to game

Postby andrey_filantrop » 24.11.2011, 18:05

Ok, if its your idea - then yes. The "autodisable/off" is a node which makes an ai to act even if he is outside of a visibility range. Just in case if you dont know. :)
Loving God gives you Happiness, Knowledge, Strength and Freedom.
AURAYAMA on Crydev & AURAYAMA in Russia :)
Portfolio: AndreyFilantrop on deviantART
Life by FlowGraph!
User avatar
perceptionBow
Just getting started
Just getting started
 
Posts: 19
Member since: 01.11.2010, 16:37
Likes: 0

Re: differences AI/Physics - Switch to game

Postby perceptionBow » 25.11.2011, 12:30

Ok, there's so much to learn about Cryengine... but in this case I'm satisfied of what done 'cause it works.

Bye and thank as ever.


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community