This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz eGetAutoTeamEvent: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
added eventTime
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_eGetAutoTeamEvent''' is an API event that is called for each new player is added to a team.
 
==Data==
'''bz_eGetAutoTeamEvent''' returns the '''bz_GetAutoTeamEventData_V1''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eGetAutoTeamEvent
  |-
  |playerID
  |int
  |ID of the player that is being added to the game.
  |-
  |callsign
  |[[bz_ApiString]]
  |Callsign of the player that is being added to the game.
  |-
  |team
  |[[bz_eTeamType]]
  |The team that the player will be added to. Initialized to the team chosen by the current server team rules, or the effects of a plug-in that has previously processed the event. Plug-ins wishing to override the team should set this value.
  |-
  |handled
  |bool
  |The current state representing if other plug-ins have modified the default team. Plug-ins that modify the team should set this value to true to inform other plug-ins that have not processed yet.
  |-
  |eventTime
  |double
  |The server time at which the event occurred (in seconds).
  |}
 
==Uses==
This is a modification event, the final results of the team member will be used and sent to the requesting player. Please note that this event can override the user's team choice.

Latest revision as of 22:13, 9 November 2025