read out files

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
UZZIEL
Corporal
Posts: 39
Joined: Tue Apr 29, 2003 6:47 pm

read out files

Post 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
If you grab in toilets don´t wonder that your hands are brown.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
Image
Post Reply