|
|
| (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_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
| |
| |-
| |
| |eventType
| |
| |[[Event(API)|bz_eEventType]]
| |
| |bz_ePlayerDieEvent
| |
| |-
| |
| |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]]
| |