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