What if I want to get the time to reach a goal and display that value on an in-game leaderboard, like Fortnite’s ONLY UP?
1 Like
You could use a billboard device and call its SetText, and UpdateDisplay functions.
1 Like
Thank you! i will try.
By the way, how should I describe the condition to update when it is earlier than the existing time?
If I understand correctly then if the time is less the previously it should update. You will need to store the time of each player in a map : PlayerTimes : [agent]int = map{}
You will need to update this periodically, this can get expensive. When you are ready to do the comparison, check the current time in seconds against the stored value and make your decision from there.
2 Likes
Really. i will try. I’ll let you know if I stumble again.
1 Like