Download

AI Perception - Current and Lost

Hello,

I cannot figure out how to access the array of currently perceived actors. I guess I can very roughly/awkwardly see the array of current perceived but I cannot affect the actors once they are not perceived.

I am just trying to get a cone to be set to visible when perceived and set it to invisible when no longer perceived. There has to be a straightforward way to deal with perceived actors and once they are no longer perceived – I just can’t work out how this is done.

You just need to save the current array of actors and then, in the next update, chech the new array with the old one. If they are not there then they are no longer perceived:

Thank you!

I will give this a try.