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

GetList

(Difference between revisions)
Return to current revision
  1.  
    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]
  2. -
    [b][wiki="ID"]vaultmp::Type[/wiki][/b] - the type
  3. +
    [b][wiki="Type"]vaultmp::Type[/wiki][/b] - the type
  4.  
    [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]