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

OnSpawn

(Difference between revisions)
Return to current revision
  1.  
    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);
  2. +
    [/highlight]
    [highlight=c]
  3.  
    forward OnSpawn(ID);
    [/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]