Thread: loadlines
View Single Post
  #4  
Old 04-24-2006, 05:35 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Yen
loadvars() dumps them into an object as variables.

keyconfig.loadvars("file");

keyconfig.up=w
keyconfig.down=s
And so on

I heard from someone that the [] labels have some effect on how it loads, but I haven't tried.
Thanks but the [] labels were what i was thinking I had to use to keep them togather, using your method i was hoping to get something like

keyconfig.movement.up=w

Although now I guess I see the way I can do it is much easier then what i was thinking in the first place, thanks.
Reply With Quote