This site has been archived and made available for preservation purposes. No edits can be made.
OnSpawn
(Difference between revisions)
Return to current revision
-
+
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]
<code cpp>
VAULTSCRIPT void OnSpawn(vaultmp::ID);
forward OnSpawn(ID);
</code>
[h="2"] Parameters [/h]
[b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Object[/wiki]
[h="2"] Return value [/h]
None.
[category]VaultMP interface[/category]
[category]Scripting callbacks[/category]