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

GetActorSneaking

(Difference between revisions)
Return to current revision
  1. -
    Retrieves the sneaking state of an [[Actor]].

    == Declaration ==
    <code cpp>
    VAULTSCRIPT vaultmp::State (*GetActorSneaking)(vaultmp::ID);
    native Bool:GetActorSneaking(ID);
    </code>
    == Parameters ==

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

    == Return value ==

    Returns a [[State|vaultmp::State]] containing the sneaking (''true'' - the [[Actor]] is sneaking, ''false'' - the [[Actor]] is not sneaking).

    == Usage example (C++) ==

    <code cpp>
    vaultmp::State state;
    state = GetActorSneaking(actor);
    </code>