Difference between revisions of "TOnBeforeJoinTeamEvent"
Line 7: | Line 7: | ||
function (Player: [[TActivePlayer]]; Team, OldTeam: [[TTeam]]): ShortInt | function (Player: [[TActivePlayer]]; Team, OldTeam: [[TTeam]]): ShortInt | ||
Player: player joining team | Player: player joining team | ||
+ | OldTeam: Current team | ||
Team: target team | Team: target team | ||
+ | Result: Overrides team selection, set to -1 to block the change |
Latest revision as of 22:51, 6 May 2020
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