TOnBeforeJoinTeamEvent

From Soldat Community Wiki
Jump to: navigation, search

Description

Type used by TTeam.OnBeforeJoin as an event handler type.

Declaration

 function (Player: TActivePlayer; Team, OldTeam: TTeam): ShortInt
  Player: player joining team
  OldTeam: Current team
  Team: target team
  Result: Overrides team selection, set to -1 to block the change