|
|
| 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 tank is killed.
| |
| | |
| ==Data==
| |
| '''bz_ePlayerDieEvent''' returns the '''bz_PlayerDieEventData_V1''' 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 was killed.
| |
| |-
| |
| |team
| |
| |[[bz_eTeamType]]
| |
| |The team the killed player was on.
| |
| |-
| |
| |killerID
| |
| |int
| |
| |The owner of the shot that killed the player, or BZ_SERVER for server side kills ( world weapons, superkill, etc..)
| |
| |-
| |
| |killerTeam
| |
| |[[bz_eTeamType]]
| |
| |The team the owner of the shot was on.
| |
| |-
| |
| |flagKilledWith
| |
| |[[bz_ApiString]]
| |
| |The flag name the owner of the shot had when the shot was fired.
| |
| |-
| |
| |shotID
| |
| |int
| |
| |The shot ID that killed the player, if the player was not killed by a shot, the id will be -1.
| |
| |-
| |
| |state
| |
| |[[bz_PlayerUpdateState]]
| |
| |The state record for the killed player at the time of the event
| |
| |-
| |
| |eventTime
| |
| |double
| |
| |The server time at which the event occurred (in seconds).
| |
| |}
| |
| | |
| ==Uses==
| |
| This event is a modification event, for example killerID can be changed.
| |
| | |
| [[Category:BZFS_API_Docs]] | |
| [[Category:BZFS_API_Events]]
| |