Cant properly set variables. Why ?

justinheinen

New member
Hi,
i just bought behavior designer and i dont understand how to use variables. Ive added a simple tree where the enemy should search for the player. BUT i want to access that variable via script, or set it via script. How to do this ? When creating a variable in that tree under variables tab, it seems not to work.

Watched several tutorials and still cant get it done. This is frustrating.

Somehow there should be a shared variable called target, but how to access that one ?

Thank you
Justin

err_1.PNGerr_2.PNGerr_3.PNG
 
It looks like you have created an Object but the Target is looking for a GameObject. If you switch TEST to the GameObject type then it'll be able to recognize it.
 
Top