TOnWeaponChangeEvent

From Soldat Community Wiki
Revision as of 07:54, 5 October 2014 by Mighty (talk | contribs) (Declaration)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.