Hi, I need to do a command that would pick a random player from world and then execute command as him.
my code:
command /swk:shrink:test <world>:
trigger:
loop all players:
if loop-player's world is "%arg 1%":
add loop-player to {_random::%arg 1%}
set {_player.%arg 1%} to random element out of {_random::*}
run {_player.%arg 1%} command "shrink 10 2" as op
Reload successfull but not working in game.
Pleas help.
Best Regards
(sorry for my english)
my code:
command /swk:shrink:test <world>:
trigger:
loop all players:
if loop-player's world is "%arg 1%":
add loop-player to {_random::%arg 1%}
set {_player.%arg 1%} to random element out of {_random::*}
run {_player.%arg 1%} command "shrink 10 2" as op
Reload successfull but not working in game.
Pleas help.
Best Regards
(sorry for my english)