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

OnActorSneak

(Difference between revisions)
Return to current revision
  1. -
    Gets called when an [[Actor]]'s sneaking state has changed.

    == Declaration ==
    <code cpp>
    VAULTSCRIPT void OnActorSneak(vaultmp::ID, vaultmp::State);
    forward OnActorSneak(ID, Bool:sneaking);
    </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.