So, I have two actors (called “Waypoint_Actor”) of the same class in my scene that have the boolean variable “IsPickable?” Under begin play in these actors they add themselves to an array located in the player controller. The “IsPickable?” variable is exposed so I can change them once in the scene and that’s what I did. One is true and the other is not true. You can see in the 2nd image that I have one selected and see that it is not true.
In the 1st image you can see that in the player controller when I hit Z one of the actors will be picked at random and if the variable is true it will print out the name of the actor. So in this instance only one of the actors has this variable set to true, but as you can see in the second image both are being printed as if they were true? Why are both being seen as being true?
I had a much more complicated version of this where AI would randomly select one of the “Waypoint_actors” and move to it which would remove it from the pool of “pickable” way points, but AI would keep going to points that were not “pickable” so I scaled it down to this and I’m still getting the same issue. Something is causing the not pickable actor to be seen as pickable some of the time? You can see in the 2nd image that when I hit Z the false option does occur some of the time but then randomly the not pickable actor is seen as pickable again?
Thanks for any help that can be given.