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 Object spawns (after [[OnPlayerRequestGame]] if the [[Object]] is a [[Player]]).
== Declaration ==
<code cpp>
VAULTSCRIPT void OnSpawn(vaultmp::ID);
-
+
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]
-
forward OnSpawn(ID);
-
-
</code>
== Parameters ==
'''[[ID|vaultmp::ID]]''' - the ID of the [[Object]]
== Return value ==
None.
-
+
[/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]