(Difference between revisions)
Return to current revision
-
-
Retrieves the sneaking state of an [[Actor]].
== Declaration ==
<code cpp>
-
+
Retrieves the sneaking state of an [wiki]Actor[/wiki].
[h="2"] Declaration [/h]
[highlight=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>
-
+
[/highlight]
[h="2"] Parameters [/h]
[b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
[h="2"] Return value [/h]
Returns a [wiki="State"]vaultmp::State[/wiki] containing the sneaking state ([wiki]True[/wiki] - the [wiki]Actor[/wiki] is sneaking, [wiki]False[/wiki] - the [wiki]Actor[/wiki] is not sneaking).
[h="2"] Usage example (C++) [/h]
[highlight=cpp]
-
vaultmp::State state;
state = GetActorSneaking(actor);
-
-
</code>
-
+
[/highlight]
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Actor functions[/category]