Results 1 to 2 of 2

Thread: FS_Loaddir, help module.

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts

    FS_Loaddir, help module.

    Hello) loaded = FS_LoadDir( "/home/server/", "mod" );
    ??? What this is??! say me.

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by maxdamage99 View Post
    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:
    PHP Code:
    path getcvar("fs_basepath");
    directory getcvar("fs_game");
    FS_LoadDir(pathdirectory); // Edit: manymap uses fs_homepath 
    Basically it rereads all files in your iwds (old and new) that are in your directory.
    Last edited by Mitch; 26th January 2015 at 16:03.

  3. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (26th January 2015),Ni3ls (27th January 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •