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

GetBase

(Difference between revisions)
Return to current revision
  1.  
    Retrieves the base of an [wiki]Object[/wiki].
    [h="2"] Declaration [/h]
  2. -
    <code cpp>
    VAULTSCRIPT vaultmp::Base (*GetBase)(vaultmp::ID);
  3. +
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Base (*VAULTAPI(GetBase))(VAULTSPACE ID) VAULTCPP(noexcept);
    [/highlight]
    [highlight=c]
  4.  
    native GetBase(ID);
  5. -
    </code>
  6. +
    [/highlight]
  7.  
    [h="2"] Parameters [/h]
  8. -
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
  9. +
    [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
  10.  
    [h="2"] Return value [/h]
  11. -
    Returns a [wiki="Base"]vaultmp::Base[/wiki] containing the base.
    [h="2"] Usage example (C++) [/h]
    <code cpp>
    vaultmp::Base baseID;
    baseID = GetBase(object);
    </code>
  12. +
    Returns a [wiki="Base"]Base[/wiki].
  13.  
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Object functions[/category]