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

OnActorFireWeapon

(Difference between revisions)
Return to current revision
  1. -
    Gets called when an [wiki]Actor[/wiki] fires a weapon.
  2. +
    Gets called when an [wiki]Actor[/wiki] fires a weapon. For automatic weapons, it is called only once per burst.
  3.  
    [h="2"] Declaration [/h]
    [highlight=cpp]
  4. -
    VAULTSCRIPT VAULTSPACE Void OnActorFireWeapon(VAULTSPACE ID, VAULTSPACE Base) _CPP(noexcept);
  5. +
    VAULTSCRIPT VAULTSPACE Void OnActorFireWeapon(VAULTSPACE ID, VAULTSPACE WEAP) VAULTCPP(noexcept);
  6.  
    [/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]
  7. -
    [b][wiki="Base"]Base[/wiki][/b] - the base ID of the weapon
  8. +
    [b][wiki="WEAP"]WEAP[/wiki][/b] - the base ID of the weapon
  9.  
    [h="2"] Return value [/h]
    None.
    [category]VaultMP interface[/category]
    [category]Scripting callbacks[/category]