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

OnActorSneak

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

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void OnActorSneak(vaultmp::ID, vaultmp::State);
  2. +
    Gets called when an [wiki]Actor[/wiki]'s sneaking state has changed.
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT VAULTSPACE Void OnActorSneak(VAULTSPACE ID, VAULTSPACE State) _CPP(noexcept);
    [/highlight]
    [highlight=c]
  3.  
    forward OnActorSneak(ID, Bool:sneaking);
  4. -
    </code>
    == Parameters ==

    '''[[ID|vaultmp::ID]]''' - the ID of the [[Actor]]

    '''[[State|vaultmp::State]]''' - the sneaking state (''true'' - the [[Actor]] is sneaking, ''false'' - the [[Actor]] is no longer sneaking)

    == 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 sneaking state ([wiki]True[/wiki] - the [wiki]Actor[/wiki] is sneaking, [wiki]False[/wiki] - the [wiki]Actor[/wiki] is no longer sneaking)
    [h="2"] Return value [/h]
    None.
    [h="2"] Related pages [/h]
    [list][*][wiki]GetActorSneaking[/wiki]
    [/LIST]
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]