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

From BZFlagWiki
Jump to navigation Jump to search
Allejo (talk | contribs)
moar eventTime's
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_eShotFiredEvent''' is an API event that is called each time a shot is fired.
 
==Data==
'''bz_eShotFiredEvent''' returns the '''bz_ShotFiredEventData_V1''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eShotFiredEvent
  |-
  |playerID
  |int
  |ID of the player that fired the shot
  |-
  |changed
  |bool
  |Whether or not the shot has been modified. Shot type will not change unless this is set to 1 (true).
  |-
  |pos
  |float[3]
  |Where the shot was fired
  |-
  |type
  |[[Bz_APIString|bz_ApiString]]
  |The shot type. This is the abbreviation, such as "PZ" or "SW"
  |-
  |eventTime
  |double
  |The server time at which the event occurred (in seconds).
  |}
 
==Uses==
This is a modification event, plug-ins may change the changed and type fields to effect changes in the bullet type that is shot from the player. Note that changing the shot type will NOT affect your client's shot. Only others will see the changes to your bullet being sent while your client shoots a regular bullet.

Latest revision as of 02:25, 27 November 2025