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

From BZFlagWiki
Jump to navigation Jump to search
No edit summary
Zehra (talk | contribs)
Redirecting page, since we got official docs
Tag: New redirect
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{API_Docs_that_need_work}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Doc}}
{{BZFS_API_Events}}
 
==Overview==
The '''bz_ePlayerSpawnEvent''' is an API event that is called each time a player spawns in the world, either after joining or after being killed.
 
==Data==
'''bz_ePlayerSpawnEvent''' returns the '''bz_PlayerSpawnEventData''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_ePlayerSpawnEvent
  |-
  |playerID
  |int
  |ID of the player who spawned
  |-
  |team
  |bz_eTeamType
  |The team the spawning player is a member of
  |-
  |pos
  |float[3]
  |Position of the spawning player
  |-
  |rot
  |float
  |Rotation of the spawning player
  |-
  |time
  |double
  |Time at which the player spawned
  |}
 
==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 01:34, 3 November 2025