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

OnActorAlert

(Difference between revisions)
Return to current revision
Current Revision 08-06-2012, 04:19 PM
  1. -
    Gets called when an [[Actor]]'s alerted state has changed.

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void OnActorAlert(vaultmp::ID, vaultmp::State);
  2. +
    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]
  3.  
    forward OnActorAlert(ID, Bool:alerted);
  4. -
    </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.
  5. +
    [/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]