Hey everyone !
So, basically, what I’m trying to do is (I think) qutie simple. I have multiple “zones” where I can do actions in it (spawn an actor). Once I have exectuted this action, I want to disable the posibility to do the action again (prevent double spawning).
So the setup I have tried is I register an index for the zone, and when I overlap the zone, I set the ZoneIndex in my player pawn. Problem is, it is working, but the getAllActorOfClass does not seems to feed the array in the order the zone have been created, but rather a random order, so even with my fixed index, it disable interraction, but not for the current zone.
My question is, how would you manage this ?
Thanks for anyone who is able to help !