home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


persistent variables

by Garth on 05/26/2008 15:28, 4 messages, last message: 05/26/2008 16:40, 900 views, last view: 05/04/2024 09:50

Hi again!
I would like to put some variables in my map.cfg because i want to charge my map with this different setting but not otherwise.
Like for example :
hidehud 1 added to mymap.cfg.
But when I launch it I have
"cannot override persistent variable hidehud" message.
Is there someone who have a clue for me to make it work?
or it is not possible at all..?
thanks!

   Board Index   

#1: ..

by apflstrudl on 05/26/2008 15:51

putting hidehud in your map cfg isn't a good idea imho, cause every player has his own config

it sounds that you tried something like this:
hidehud = 0
it should be hidehud 0 but i think it's easier when you post that part in a pastebin and put the link here

reply to this message

#2: Re: ..

by Garth on 05/26/2008 16:07, refers to #1

no no, for example:

mymap.cfg:

loadsky ....
etc...

hidehud 1
________


that's all! It's not to share for the moment, it's to try something.
And even this, it could be a mod where people don't see their hud.

reply to this message

#3: Re: ..

by Hirato Kirata on 05/26/2008 16:28, refers to #2

it's a persistent variable... persistent variables and binds are two fundamental things you can not set in map CFGs...

if you want to modify them, may I suggest reading up on scripting and guis, you'll be surprised what a guibutton can do ;)

~Hirato Kirata

reply to this message

#4: ..

by Garth on 05/26/2008 16:40

Yep truely! I know.
But in fact i would like to set attribute to a map to use it after by a mod.
like for example:
mymap.cfg:
recallpoint x y z
_______
but for the moment the mod is not done and that's why i have tried this before with hidehud 0
But I think that for this try of mod i will need to recode a bit...
I wanted to be sure before hard changes..
thanks

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53872748 visitors requested 71647953 pages
page created in 0.033 seconds using 10 queries
hosted by Boost Digital