|
|
| (3 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_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, so that other plugins will know whether they can edit the spawn position again
| |
| |-
| |
| |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]]
| |