Can See Object - var returned object : problem with several target

Black_Dragon

New member
Hi,

Hope every is fine,

I am using Behavior a a small topdown game, it's working wit hall enemy when I have 1 player (mean 1 objet with tag "Player") when I add other player, the Can see Object look like working only with the last Object with tag "Player".

= the enemy ignor the other player (the var is not set in the returned object), the other player are copy/past of the first one

can see.png

very strange and I don't understand the issue (tag is the same) and ideas ? or a way for several Target in range?

Thanks for your help,
 
Tags are slow so I do not recommend using them. You can either fill in the Target Objects array or use the Object Layer Mask field to find the target.
 
Top