Es getargs
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_xgetargs [edit] DescriptionReturns the number of arguments sent to a command that has been registered with es_regcmd. [edit] Parameters
[edit] Examplesblock load { es_regcmd test script/test "test command" } block test { es_xsetinfo var 0 es_getargs var } This will store all of arguments as a string into the variable var. So if you were to type: test arg1 arg2 arg3 It would return "arg1 arg2 arg3" because that is the exact argument list that was entered.
[edit] Notes(None)
[edit] See also |
