Es foreachkey
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xforeachkey [edit] DescriptionLoops through a keygroup's keys and executes a command of your choosing. A variable is set to the name of the key before the command is run inside the loop.
[edit] Parameters
[edit] Examples// this will create a keygroup of all players es_createplayerlist examplegroup // This will loop through all of the players and output their userid: es_foreachkey example_player in examplegroup "es_msg Found playerid server_var(example_player) !"
[edit] Notes
[edit] See also
|
