How to make it so you know how far away the nearest person on the other team is

Basically I saw a person make it before but for some reason I can’t load images so I need a description

I’ll have to try thinking of a system for this, but I think this would mostly utilize the waypoint

no images :(
1 Like

Tie a waypoint to a coordinate device.

1 Like

The images on here were all deleted due to taking too much space on the servers

Remember the scope should be player.

1 Like

Ok I’ll look into that and see if it works or not

Gimkiter the images are deleted, but it could be useful nonetheless!

1 Like

Yea just try to look into what WSG said, because using a coordinates device, some block code, and perhaps a way point will be your best options

2 Likes

Personally, I would have some proximity code after putting a waypoint on everyone that would:

Check a player that’s on your team’s distance to you[1], check if it is less than the value it has for the closest player, set that value to the distance and activate that players waypoint. Loop the build so it checks every player and resets the distance back to the default (a big number) when it is done looping.

The build could run every half second or second to keep up with players moving around, but I think a few edge cases could slip through. Anyone else have any ideas?


  1. sqrt[(other player x - your x)^2 + (other players y - your y)^2] ↩︎

2 Likes

I understand only half of that, but from what I see it sounds like a good idea!

Oh yeah. I should probably show you guys the guide I got from searching this up, so just search up “How to Track Every Player and Find Their Difference” and you’ll see the guide that Fulcrum-19 made

I couldn’t understand it because it was mostly images, but maybe you guys can get something off it?

Here use this How to put a waypoint on every player in the game!

Slim_shady912 that guide is pictureless. However, it’s helpful nonetheless!

1 Like

Working on it!

No the pictures work now

1 Like

Oh okay, thanks for letting me know!

1 Like