Last active
March 22, 2024 09:22
-
-
Save hobione2k/1298af84a6a7f86ff49fbca5e3d0e6a5 to your computer and use it in GitHub Desktop.
ClusterScript ワールドにいるユーザーを一括取得するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const activePlayer = (players) => | |
players.filter((p) => p != null && p.exists()); | |
const getAllPlayer = () => { | |
const players = $.getPlayersNear($.getPosition(), Infinity); | |
return activePlayer(players); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使い方