Page 1 of 1

read out files

Posted: Sun Jun 22, 2003 2:42 pm
by UZZIEL
hi!

didnt know where to post it so decided to put it in scripting.
Its less an mapping but more an modding prob.

Its all about an rcon command.

I set in a config file test.cfg:

exec test.cfg
seta testvar1 "here i am"

ive made an urc file test.urc in ui folder:

rcon say testvar1

both are loaded properly.
but it didnt recognize testcvar as an cvar but just as "testvar1"

so it broadcasts "testcvar1" and not "here i am"

i tried it also with "testcvar" 'testcvar' brackets etc..
all didnt helped.

maybe its a wrong way to do it with an cvar.
so my question is what have i to do to read out an variable of an outer file to use it as an rcon command variable? Is it possible?

thx for any help

Posted: Wed Jun 25, 2003 12:22 pm
by jv_map
Maybe you can do it with an alias? Something like this in your cfg:
alias saytestvar "rcon say here i am"

Then in your urc file type:
stuffcommand saytestvar