#Proximity Chat Not working

1 messages · Page 1 of 1 (latest)

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

obsidian oxide
#

players includes player

#

so do 1

frank robin
#

One message removed from a suspended account.

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

obsidian oxide
#

also i'd definitely use variables to make that much shorter

frank robin
obsidian oxide
#
set {_players::*} to players where [distance between player and input < 20]
if size of {_players::*} <= 1:
  send "&7Nobody heard you."
  stop
send "&a[PROXIMITY CHAT] %player%&7: %unformatted message%" to {_players::*}```
frank robin
obsidian oxide
#

thats just for inside the proxchat check

frank robin
#

One message removed from a suspended account.

obsidian oxide
#

so u dont have to do [distance between player and input < 20] multiple times cause thats more laggy and removing the inline ifs cause thats much slower parsing

obsidian oxide
frank robin
obsidian oxide
#

loop players::*

#

and get the distance from loop-player

frank robin
#

One message removed from a suspended account.

obsidian oxide
#

loop-player

#
loop {_players::*}
  set {_dist} to distance between loop-player and player
frank robin
#

One message removed from a suspended account.

frank robin
obsidian oxide
#

bruh

#

u gotta send to loop-player

#

also :

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

obsidian oxide
frank robin
frank robin
#

One message removed from a suspended account.

frank robin
#

One message removed from a suspended account.

frank robin
#

One message removed from a suspended account.

woven anvil
#

bro pingedme

#

location of x?

frank robin
woven anvil
#

distance between %location% and %location%

frank robin
woven anvil
#

idk

slender vessel
#

@frank robin

#

I think you might have to use loop-value

frank robin
slender vessel
#

@frank robin no, index is the index of the list

#

That only returns a key instead of a value

frank robin
slender vessel
#

I'm not online right now

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

slender vessel
#

To loop-value

#

send "" to loop-value

frank robin
slender vessel
#

Your game or the code

#

Oh you missed an indent that's why

frank robin
slender vessel
#

The red line

#

You see how you put the proximity chat under the "no one heard you" check

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

deft bronze
#

If player is you then send message without distance prefix

slender vessel
#

You can figure that out on your own

woven anvil
frank robin
woven anvil
#

o

frank robin
#

One message removed from a suspended account.

#

One message removed from a suspended account.