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
Tulcod (talk | contribs)
New page: {{BZFS_API_Doc}} {{BZFS_API_Events}} ==Overview== The '''bz_eGetAutoTeamEvent''' is an API event that is called when the server needs to know which team to add a new player to. ==Data== ...
 
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(4 intermediate revisions by 3 users not shown)
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 when the server needs to know which team to add a new player to.
 
==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 new player
  |-
  |callsign
  |bzApiString
  |Callsign of the new player
  |-
  |team
  |bz_eTeamType
  |The team bzfs chose the player to belong to, you CAN change this
  |-
  |handled
  |bool
  |Set this value to true once you've modified the team, so that other plugins will know they shouldn't modify it again
  |}
 
==Uses==
You can use this event to let team choosing be done by a plugin.
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 22:13, 9 November 2025