Hey all, I'm trying to get a timer for each player to restart whenever their own hero dies in the game. I assume each player should have their own timer, I have 4 players possible so I have TimerArray[] and TimerWindowArray[] both with 4 fields. I want to start that players timer when their hero dies, giving them the allotted time to pick a new hero to re-enter the arena with. Once the timer expires, I have it pick a random hero for them if they haven't done so already. The problem I'm having is the Timer either doubles up and I see multiple timers when my hero dies, or nothing shows up at all.
What's the best way to handle these timers? If someone could go through how they would set it up, just so i make sure I'm not missing something, that would be awesome :)
I guess with things not working I can figure that out on my own.. Say each player gets three "lives"... and when their picked hero dies, I want them to be able to pick a new hero... So the timer needs to be restarted for that specific player every time their hero dies until they run out of lives. Would creating the array of timers like that be the best idea to do it? Or is there a better/more efficient way to do it?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey all, I'm trying to get a timer for each player to restart whenever their own hero dies in the game. I assume each player should have their own timer, I have 4 players possible so I have TimerArray[] and TimerWindowArray[] both with 4 fields. I want to start that players timer when their hero dies, giving them the allotted time to pick a new hero to re-enter the arena with. Once the timer expires, I have it pick a random hero for them if they haven't done so already. The problem I'm having is the Timer either doubles up and I see multiple timers when my hero dies, or nothing shows up at all.
What's the best way to handle these timers? If someone could go through how they would set it up, just so i make sure I'm not missing something, that would be awesome :)
Can you post your trigger please so we can see what's wrong with it?
I don't have editor open, but it should probably something similar to this
@playpong: Go
I guess with things not working I can figure that out on my own.. Say each player gets three "lives"... and when their picked hero dies, I want them to be able to pick a new hero... So the timer needs to be restarted for that specific player every time their hero dies until they run out of lives. Would creating the array of timers like that be the best idea to do it? Or is there a better/more efficient way to do it?