TOnBeforeJoinTeamEvent

From Soldat Community Wiki
Revision as of 22:51, 6 May 2020 by H (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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