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 ePlayerDieEvent: 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_ePlayerDieEvent''' is an API event that is called each time a player died. ==Data== '''bz_ePlayerDieEvent''' returns the '''bz...
 
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_ePlayerDieEvent''' is an API event that is called each time a player died.
 
==Data==
'''bz_ePlayerDieEvent''' returns the '''bz_PlayerDieEventData''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |playerID
  |int
  |ID of the player who died
  |-
  |team
  |bz_eTeamType
  |The team the dying player was a member of
  |-
  |killerID
  |int
  |The bastard who killed the player
  |-
  |killerTeam
  |bz_eTeamType
  |The team the killer was a member of
  |-
  |flagKilledWith
  |bzApiString
  |The kind of flag used to kill
  |-
  |shotID
  |int
  |Index of the bullet which hit the player fatally
  |-
  |pos
  |float[3]
  |Position of the dying player
  |-
  |rot
  |float
  |Rotation of the dying player
  |-
  |time
  |double
  |Time at which the player was killed
  |}
 
==Uses==
This event is a notification only event, none of the data returned can be changed.
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 17:31, 9 November 2025