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

GetActorSneaking

This is an old revision of this page, as edited 09-30-2011, 02:53 PM by . It may differ significantly from the current revision.
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>