How to setup AI Perception
So I know that there are a couple of tutorials coming up on how to use the new AI Perception System. I can't wait to really dig in and start using it, but seeing as those aren't out yet (any idea when one will be up?) I was wondering if anyone knows how to do a simple setup for it to do some simple sensing. This is what I've gotten so far but I seem to be missing something:
First inside of my controller (Constructor) I setup my function that will do stuff when I see something:
Next also inside of my controller (OnPossess) I configure my sight sense:
Next I register my pawn as a stimuli source so that I can detect it (also in OnPossess):
Now in the Tick() of the controller i do this:
Finally my sense stuff function inside of the controller:
I think i'm close to figuring it out but i'm missing something key (or maybe I should just wait for a tutorial haha). Essentially the SenseStuff function is never getting called when two of my units that are using this get close to each other.
Thanks in advance! -Chris
First of all, this bit:
don't do it :) This usually gets called under the hood to modify navigation system that perception listener's properties has changed, like hearing radius, team, senses used, and such.
If this doesn't help try configuring your sight to "see all affiliations", like so:
There are still some bugs or missing convenience featured in perception system so please report anything you find. And let me know if what I said helped, of course :D
answered Apr 14 '15 at 06:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here