Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

This function was added in version:

Function gets mds file name by it's id. Mds must be registered in mds.xml file, in order to be able to, for example: apply overlay for specifc player.

NOTE! After server restart, every mds does have different id. The id is the same on both sides.


string or null id)

Required Arguments

  • id: The mds id.


  • string or null: string when mds id if the files is registered in mds.xml, otherwise null.


    local mdsId ="HUMANS_1HST1.MDS"))
    local mdsName = // dummy example
    print(mdsName); // it will print "HUMANS_1HST1.MDS"

Related functions