Difference between revisions of "TOnBeforeJoinTeamEvent"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "==Description== Type used by TTeam.OnBeforeJoin as an event handler type. Category:Types ==Declaration== function (Player: TActivePlayer; Team, OldTeam: TTea...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
==Declaration==
 
==Declaration==
   function (Player: [[TActivePlayer]]; Team, OldTeam: [[TTeam]])
+
   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