PDA

View Full Version : FS_Loaddir, help module.



maxdamage99
26th January 2015, 16:14
Hello) loaded = FS_LoadDir( "/home/server/", "mod" );
??? What this is??! say me.

Mitch
26th January 2015, 16:29
Hello) loaded = FS_LoadDir( "/home/server/", "mod" );
??? What this is??! say me.

It reloads your server's game directories. For example if you upload a new iwd or link a new iwd with your mod then you can use them in your server without a map restart.

You can use it also like this:


path = getcvar("fs_basepath");
directory = getcvar("fs_game");
FS_LoadDir(path, directory); // Edit: manymap uses fs_homepath


Basically it rereads all files in your iwds (old and new) that are in your directory.