Haytam95
Active member
Hi
I'm starting to design the AI and i'm having a hard time with a simple task: Start an Ability (Speed Change). I need that the agent start running when he is far away from the character, while he seeks him.
Here is my tree, some details about it:
- Repeater is forever.
- Paralel because i want the character the agent to Seek the player, regardless if he is running or not. (I didn't added the part when he should stop running, yet so when the character is near by the player also the seek stops working).
- Within distance has the target object of the player and a magnitude of "5". The inverter is to check that he isn't in that range.
- Start Stop Ability just is pointed to Speed Change; start checked and always return success.
The distance checker is working fine:
By doing a little debugging, a discovered that the Start Stop Ability is only called on the start frame, in which fails because the character is not moving. Then, Behavior isn't trying to Start the ability again.
What should i do?
Thanks!
I'm starting to design the AI and i'm having a hard time with a simple task: Start an Ability (Speed Change). I need that the agent start running when he is far away from the character, while he seeks him.
Here is my tree, some details about it:
- Repeater is forever.
- Paralel because i want the character the agent to Seek the player, regardless if he is running or not. (I didn't added the part when he should stop running, yet so when the character is near by the player also the seek stops working).
- Within distance has the target object of the player and a magnitude of "5". The inverter is to check that he isn't in that range.
- Start Stop Ability just is pointed to Speed Change; start checked and always return success.
The distance checker is working fine:
By doing a little debugging, a discovered that the Start Stop Ability is only called on the start frame, in which fails because the character is not moving. Then, Behavior isn't trying to Start the ability again.
What should i do?
Thanks!