This site has been archived and made available for preservation purposes. No edits can be made.
OnActorFireWeapon
(Difference between revisions)
Return to current revision
-
Gets called when an [wiki]Actor[/wiki] fires a weapon.
-
+
Note that for automatic weapons, it is called only once per burst.
-
[h="2"] Declaration [/h]
[highlight=cpp]
VAULTSCRIPT VAULTSPACE Void OnActorFireWeapon(VAULTSPACE ID, VAULTSPACE Base) _CPP(noexcept);
[/highlight]
[highlight=c]
forward OnActorFireWeapon(ID, weapon);
[/highlight]
[h="2"] Parameters [/h]
[b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
[b][wiki="Base"]Base[/wiki][/b] - the base ID of the weapon
[h="2"] Return value [/h]
None.
[category]VaultMP interface[/category]
[category]Scripting callbacks[/category]