P
polymorpher
Guest
how do you make it so that the multiboard shows everyone how far the player is from a certain point
Distance Leaderboard Init
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Set TargetPoint = (Center of (Playable map area))
Leaderboard - Create a leaderboard for (All players) titled Distance
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
Trigger - Run Update Leaderboard <gen> (checking conditions)
Update Leaderboard
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to (Integer((Distance between (Position of PlayerUnit[(Player number of (Picked player))]) and TargetPoint)))