(Difference between revisions)
Return to current revision
-
-
Gets called when an [[Actor]]'s alerted state has changed.
== Declaration ==
<code cpp>
VAULTSCRIPT void OnActorAlert(vaultmp::ID, vaultmp::State);
-
+
Gets called when an [wiki]Actor[/wiki]'s alerted state has changed.
[h="2"] Declaration [/h]
[highlight=cpp]
VAULTSCRIPT VAULTSPACE Void OnActorAlert(VAULTSPACE ID, VAULTSPACE State) _CPP(noexcept);
[/highlight]
[highlight=c]
-
forward OnActorAlert(ID, Bool:alerted);
-
-
</code>
== Parameters ==
'''[[ID|vaultmp::ID]]''' - the ID of the [[Actor]]
'''[[State|vaultmp::State]]''' - the alerted state (''true'' - the [[Actor]] is alerted, ''false'' - the [[Actor]] is no longer alerted)
== Return value ==
None.
-
+
[/highlight]
[h="2"] Parameters [/h]
[b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
[b][wiki="State"]State[/wiki][/b] - the alerted state ([wiki]True[/wiki] - the [wiki]Actor[/wiki] is alerted, [wiki]False[/wiki] - the [wiki]Actor[/wiki] is no longer alerted)
[h="2"] Return value [/h]
None.
[h="2"] Related pages [/h]
[list][*][wiki]GetActorAlerted[/wiki]
[/LIST]
[category]VaultMP interface[/category]
[category]Scripting callbacks[/category]