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

GetActorAlerted

(Difference between revisions)
Return to current revision
  1.  
    Retrieves the alerted state of an [wiki]Actor[/wiki].
    [h="2"] Declaration [/h]
  2. -
    <code cpp>
  3. +
    [highlight=cpp]
  4.  
    VAULTSCRIPT vaultmp::State (*GetActorAlerted)(vaultmp::ID);
    native Bool:GetActorAlerted(ID);
  5. -
    </code>
  6. +
    [/highlight]
  7.  
    [h="2"] Parameters [/h]
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
    [h="2"] Return value [/h]
  8. -
    Returns a [wiki="State"]vaultmp::State[/wiki] containing the alerted state ([i]true[/i] - the [wiki]Actor[/wiki] is alerted, [i]false[/i] - the [wiki]Actor[/wiki] is not alerted).
  9. +
    Returns a [wiki="State"]vaultmp::State[/wiki] containing the alerted state ([wiki]True[/wiki] - the [wiki]Actor[/wiki] is alerted, [wiki]False[/wiki] - the [wiki]Actor[/wiki] is not alerted).
  10.  
    [h="2"] Usage example (C++) [/h]
  11. -
    <code cpp>
  12. +
    [highlight=cpp]
  13.  
    vaultmp::State state;
    state = GetActorAlerted(actor);
  14. -
    </code>
  15. +
    [/highlight]
  16.  
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Actor functions[/category]