Es getargv
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_xgetargv [edit] DescriptionGets a specified argument from the last command that was sent. [edit] Parameters
[edit] Examplesblock load { es_regcmd test script/test "test command" } block test { es_xsetinfo var 0 es_getargv var 1 } This will store the first argument into the variable var. So if you were to type: test arg1 arg2 arg3 It would return "arg1" because it was the first argument entered.
[edit] Notes
[edit] See also |
