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 eTeamScoreChanged: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
time to 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_eTeamScoreChanged''' is an API event that is called when a team's score changes.
 
==Data==
'''bz_eTeamScoreChanged''' returns the '''bz_TeamScoreChangeEventData_V1''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eTeamScoreChanged
  |-
  |team
  |[[bz_eTeamType]]
  |The team that had a change of score.
  |-
  |element
  |[[bz_eScoreElement]]
  |The type of score that is being changed.
  |-
  |thisValue
  |int
  |The new amount of '''element''' score the '''team''' has.
  |-
  |lastValue
  |int
  |The old amount of '''element''' score the '''team''' had.
  |-
  |eventTime
  |double
  |The server time at which the event occurred (in seconds).
  |}
 
==Uses==
Can be used to record and report scores. Note that the difference between thisValue and lastValue can vary by more than 1 if a player for example, [[Team Kill|teamkills]] or kills with a Genocide shot.

Latest revision as of 22:43, 9 November 2025