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 eGetPlayerSpawnPosEvent: 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_eGetPlayerSpawnPosEvent''' is an API event that you can use to get and modify a spawn location and is sent just before spawning...
 
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(4 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_eGetPlayerSpawnPosEvent''' is an API event that you can use to get and modify a spawn location and is sent just before spawning a player.
 
==Data==
'''bz_eGetPlayerSpawnPosEvent''' returns the '''bz_GetPlayerSpawnPosEventData''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eGetPlayerSpawnPosEventData
  |-
  |playerID
  |int
  |ID of the player
  |-
  |team
  |bz_eTeamType
  |The team the player belongs to
  |-
  |handled
  |bool
  |Set this flag to true once you're done modifying the spawn position
  |-
  |pos
  |float[3]
  |Position where the player will be spawned
  |-
  |rot
  |float
  |Rotation with which the player will be spawned
  |-
  |time
  |double
  |Time at which this event was sent
  |}
 
==Uses==
You can use this event to modify a player's spawn location
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 22:37, 9 November 2025