This site has been archived and made available for preservation purposes. No edits can be made.

SetServerMap

(Difference between revisions)
Return to current revision
  1.  
    Sets the map of the server.
    [h="2"] Declaration [/h]
    [highlight=cpp]
  2. -
    VAULTSCRIPT vaultmp::Void (*SetServerMap)(std::string);
  3. +
    VAULTSCRIPT vaultmp::Void (*SetServerMap)(vaultmp::String);
  4.  
    native SetServerMap(map{});
    [/highlight]
    [h="2"] Parameters [/h]
    [b]map[/b] - the new map
    [h="2"] Return value [/h]
    None.
    [h="2"] Usage example (C++) [/h]
    [highlight=cpp]
  5. -
    std::string map = "Vault 101";
  6. +
    vaultmp::String map = "Vault 101";
  7.  
    SetServerMap(map);
    [/highlight]
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Misc functions[/category]