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