Save variable

Hi Justin, I use 'Returned Object' in 'Can See Object' to save 'EnemyObj' variable. When the AI finds the enemy, 'EnemyObj' will be saved, but when the AI reaches the enemy, 'EnemyObj' will become Null. Simply put, when the 'Seek' task is completed, 'EnemyObj' will become Null. What should I do to keep ‘EnemyObj’ unchanged to Null?

Edit: I figured it out, I readjusted the collider of the AI, and now the variable will not become Null.
 
Last edited:
Top