TOnWeaponChangeEvent

From Soldat Community Wiki
Jump to: navigation, search

Description

Type used by TActivePlayer.OnWeaponChange as an event handler type.

Declaration

procedure(Player: TActivePlayer; Primary, Secondary: TPlayerWeapon)
 Player: player changing weapons
 Primary: Player's Primary weapon after the change
 Secondary: Player's Secondary weapon after the change
Note: During execution of code in the event, Player argument still contains information about weapons before the weapons change. This means Player.Primary.Name is not equal to Primary.Name.