This site has been archived and made available for preservation purposes. No edits can be made.
GetCount
(Difference between revisions)
Return to current revision
-
-
Returns the number of all currently existing instances of a given [wiki="Type"]vaultmp::Type[/wiki].
-
+
Returns the number of all currently existing instances of a given [wiki="Type"]Type[/wiki].
-
[h="2"] Declaration [/h]
[highlight=cpp]
-
-
VAULTSCRIPT vaultmp::UCount (*GetCount)(vaultmp::Type);
-
+
VAULTSCRIPT VAULTSPACE UCount (*VAULTAPI(GetCount))(VAULTSPACE Type) VAULTCPP(noexcept);
[/highlight]
[highlight=c]
-
native GetCount(Type:type);
[/highlight]
[h="2"] Parameters [/h]
-
-
[b][wiki="ID"]vaultmp::Type[/wiki][/b] - the type
-
+
[b][wiki="Type"]Type[/wiki][/b] - the type
-
[h="2"] Return value [/h]
-
-
Returns a [wiki="UCount"]vaultmp::UCount[/wiki].
-
+
Returns a [wiki="UCount"]UCount[/wiki].
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Game functions[/category]