This site has been archived and made available for preservation purposes. No edits can be made.
GetList
(Difference between revisions)
Return to current revision
-
Returns a [wiki="IDVector"]IDVector[/wiki] of all instances of a given [wiki="Type"]vaultmp::Type[/wiki].
[h="2"] Declaration [/h]
[highlight=cpp]
VAULTSCRIPT vaultmp::IDVector (*GetList)(vaultmp::Type);
native GetList(Type:type, id[]);
[/highlight]
[h="2"] Parameters [/h]
-
-
[b][wiki="ID"]vaultmp::Type[/wiki][/b] - the type
-
+
[b][wiki="Type"]vaultmp::Type[/wiki][/b] - the type
-
[b]id[/b] (PAWN only) - an array large enough to hold all instances. See [wiki]GetCount[/wiki]
[h="2"] Return value [/h]
The C++ version returns a [wiki="IDVector"]vaultmp::IDVector[/wiki]. The PAWN version returns the number of actually stored IDs.
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Game functions[/category]