This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Bz ePlayerDieEvent"

From BZFlagWiki
Jump to: navigation, search
(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...)
 
Line 12: Line 12:
 
   !type
 
   !type
 
   !value description
 
   !value description
 +
  |-
 +
  |eventType   
 +
  |[[Event(API)|bz_eEventType]]
 +
  |bz_ePlayerDieEvent
 
   |-
 
   |-
 
   |playerID
 
   |playerID

Revision as of 15:55, 28 November 2007

BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.

BZFS Event. This page documents a BZFS event that is called by the game server to notify plug-ins of various actions and state changes in the game world.


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.

name type value description
eventType 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.