Es getargs

From EventScripts Community Encyclopedia


Overview

Syntax: es_getargs <variable>

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

Description

Returns the number of arguments sent to a command that has been registered with es_regcmd.

Parameters

  • variable - Variable to store the arguments as a string into.


Examples

block 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.


Notes

(None)


See also

blog comments powered by Disqus