This is my code so far:
Syntax: Select all
from events import Event
from filters.players import PlayerIter
@Event('player_say')
def on_player_say(event):
for player in PlayerIter('bot'):
x = randint(-90, 90)
y = randint(-90, 90)
z = randint(-90, 90)
player.client_command(f"setang {x} {y} {z}", True)
And yes I tried using the
Syntax: Select all
player.set_view_coordinates()