This site has been archived and made available for preservation purposes. No edits can be made.
GetReference
(Difference between revisions)
Return to current revision
-
Retrieves the reference of an [wiki]Object[/wiki].
[h="2"] Declaration [/h]
-
-
<code cpp>
VAULTSCRIPT vaultmp::Reference (*GetReference)(vaultmp::ID);
-
+
[highlight=cpp]
VAULTSCRIPT VAULTSPACE Ref (*VAULTAPI(GetReference))(VAULTSPACE ID) VAULTCPP(noexcept);
[/highlight]
[highlight=c]
-
native GetReference(ID);
-
-
</code>
-
+
[/highlight]
-
[h="2"] Parameters [/h]
-
-
[b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
-
+
[b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
-
[h="2"] Return value [/h]
-
-
Returns a [wiki="Reference"]vaultmp::Reference[/wiki] containing the reference.
[h="2"] Usage example (C++) [/h]
<code cpp>
vaultmp::Reference refID;
refID = GetReference(object);
</code>
-
+
Returns a [wiki="Reference"]Reference[/wiki].
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Object functions[/category]