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

OnSpawn

(Difference between revisions)
Return to current revision
Current Revision 08-06-2012, 04:13 PM
  1. -
    Gets called when an Object spawns (after [[OnPlayerRequestGame]] if the [[Object]] is a [[Player]]).

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void OnSpawn(vaultmp::ID);
  2. +
    Gets called when an [wiki]Object[/wiki] spawns (after [wiki]OnPlayerRequestGame[/wiki] if the [wiki]Object[/wiki] is a [wiki]Player[/wiki]).
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Void OnSpawn(VAULTSPACE ID) _CPP(noexcept);
    [/highlight]
    [highlight=c]
  3.  
    forward OnSpawn(ID);
  4. -
    </code>
    == Parameters ==

    '''[[ID|vaultmp::ID]]''' - the ID of the [[Object]]

    == Return value ==

    None.
  5. +
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
    [h="2"] Return value [/h]
    None.
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]