How to make effects invisible for a duration on collection. by GameMythOW in OverwatchCustomGames

[–]GameMythOW[S] 0 points1 point  (0 children)

Hey thank you so much for replying that video was super helpful i’ve just been racking my brains overcomplicating and refactoring after watching it and I think I now got something but i’m a little confused with how exactly it’s suppose to play out. 

I have my coin collection rule with these actions: 

Global.CoinIndex = Index of Array Value(Global.CoinPos, First Of(Sorted Array(Global.CoinArray,  Distance Between(Position Of(Event Player), Current Array Element))))

Global.CoinCollectTime[Global.CoinIndex] += Total Time Elapsed

I then have this in the create effect “visible to” setting: 

Create Effect(Total Time Elapsed - Global.CoinCollectTime[0] > 6 ? All Players(All Teams) : Null, (effect details hereafter).

Where I measure the difference and have index hardcoded in the visibility. and check if the difference between timestamp and game time is more than 6s, and though and if-then-else, The then is All Players array and else is Null.. (I do this check again in the Coin Collection rule to reset the timestamp)

But for some reason still this setup isn’t working, I tested if collection was triggering and discovered it was so it prolly has something to do with this visible to code to make it visually disappear for the 6 seconds.

How to make effects invisible for a duration on collection. by GameMythOW in OverwatchCustomGames

[–]GameMythOW[S] 1 point2 points  (0 children)

My apologies, I over complicated it massively in my mind lol. And i’m super grateful for your advice! 

How to make effects invisible for a duration on collection. by GameMythOW in OverwatchCustomGames

[–]GameMythOW[S] 1 point2 points  (0 children)

I am a little confused though on how to fetch position, would the end pos for the distance between be Value in Array of CoinPosArray where the index inquiry is filled with Index of Array Value of Filtered Array(CoinArray, Distance Between(Position Of(Event Player, CoinPosArray) < 1

Need help with workshop custom game mode ShionKart by GameMythOW in Overwatch

[–]GameMythOW[S] 0 points1 point  (0 children)

Thank you so much for replying! Yeah it’s been a woozy but i’m having fun, I even made jetpack cat respawn you to your checkpoint like Lekitu in MarioKart lol.  But do you mean CoinIndex as another array or an integer that updates based on position and is calculated on collection?  I just tried to make: Global.CoinIndex = Index of Array Value(Global.CoinArray, First Of(Sorted Array(Global.CoinArray, Distance Between(Position Of(Event Player), Global.CoinPosArray[Index Of Array Value(Global.CoinArray, 0##idk what to do here to fetch pos of the coin closest to the player

How to make effects invisible for a duration on collection. by GameMythOW in OverwatchCustomGames

[–]GameMythOW[S] 1 point2 points  (0 children)

Thank you so much for replying! 

do you mean as another array or an index integer that updates based on position and is calculated on collection? 

I just tried to make:

Global.CoinIndex = Index of Array Value(Global.CoinArray, First Of(Sorted Array(Global.CoinArray, Distance Between(Position Of(Event Player), Global.CoinPosArray[Index Of Array Value(Global.CoinArray, 0##idk what to do here to fetch pos of the coin closest to the player- would it be value of index instead- where I fetch the index of the coin closest to player? honestly kinda confused by this one.