(Difference between revisions)
Return to current revision
-
-
Gets called when an [[Actor]]'s sneaking state has changed.
== Declaration ==
<code cpp>
VAULTSCRIPT void OnActorSneak(vaultmp::ID, vaultmp::State);
-
+
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]
-
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.
-
+
[/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]