This site has been archived and made available for preservation purposes. No edits can be made.
GetActorAlerted
(Difference between revisions)
Return to current revision
-
-
Retrieves the alerted state of an [[Actor]].
== Declaration ==
<code cpp>
VAULTSCRIPT vaultmp::State (*GetActorAlerted)(vaultmp::ID);
native Bool:GetActorAlerted(ID);
</code>
== Parameters ==
'''[[ID|vaultmp::ID]]''' - the ID of the [[Actor]]
== Return value ==
Returns a [[State|vaultmp::State]] containing the alerted state (''true'' - the [[Actor]] is alerted, ''false'' - the [[Actor]] is not alerted).
== Usage example (C++) ==
<code cpp>
vaultmp::State state;
state = GetActorAlerted(actor);
</code>