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

GetReference

(Difference between revisions)
Return to current revision
Current Revision 11-17-2012, 01:16 AM
  1. -
    Retrieves the reference of an [[Object]].

    == Declaration ==
    <code cpp>
    VAULTSCRIPT vaultmp::Reference (*GetReference)(vaultmp::ID);
  2. +
    Retrieves the reference of an [wiki]Object[/wiki].
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Ref (*VAULTAPI(GetReference))(VAULTSPACE ID) VAULTCPP(noexcept);
    [/highlight]
    [highlight=c]
  3.  
    native GetReference(ID);
  4. -
    </code>
    == Parameters ==

    '''[[ID|vaultmp::ID]]''' - the ID of the [[Object]]

    == Return value ==

    Returns a [[Reference|vaultmp::Reference]] containing the reference.

    == Usage example (C++) ==

    <code cpp>
    vaultmp::Reference refID;
    refID = GetReference(object);
    </code>
  5. +
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
    [h="2"] Return value [/h]
    Returns a [wiki="Ref"]Ref[/wiki].
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Object functions[/category]