Hello! I am working on a ShionKart game which is pretty much going to have all the features of MarioKart: Items, coins, boosts- but with even more on top of that- damage slows and evade cleanses. There is a relay feature where when you get to the end of the map you must loop back to the start and thatā considered a full lap.
I have a problem with adding in the coins and specifically their collection logic- when I create the coins, they are set to a stored pos on an array (CoinPosArray) and after their created appended to CoinArray, and finally I append ātrueā to an array called CoinVis for every coin effect that would exist on a given map.
When I collect coins via:
Count Of(Filtered Array(Global.CoinPosArray), Distance Between(Position Of(Event Player), Current Array Element) <= 2.600)) > 0
I would hypothetically have to change the specific matching index of CoinVis to the Coin Effect being collected to false.
This is so that in the create effect action, the visible to is set to something like:
Filtered Array(All Players(All Teams), Index of Array Value(Global.CoinArray, Current Array Element) == Closest to(Position Of(Event Player) AND (how to check for specific coinās visibility bool index and whether it matches)
But my problem is exactly that: I have no idea how to connect the two arrays.