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

From BZFlagWiki
Jump to navigation Jump to search
Brad (talk | contribs)
m moved Bz eAllowFlagGrabEvent to Bz eAllowFlagGrab: this is the real name for the event
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Events}}
 
==Overview==
The '''bz_eAllowFlagGrabEvent''' is an API event that is called each time a player is about to grab a flag.
==Data==
'''bz_eAllowFlagGrabEvent''' returns the '''bz_eAllowFlagGrabEvent_V1''' data class.
 
  {| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |eventType   
  |[[Event(API)|bz_eEventType]]
  |bz_eAllowFlagGrabEvent
  |-
  |playerID
  |int
  |The ID of the player who is grabbing the flag
  |-
  |pos
  |float[3]
  |The position of the player about to grab the flag
  |-
  |flagID
  |int
  |The ID of the flag that is going to be grabbed
  |-
  |flagType
  |const char*
  |The type of the flag about to be grabbed
  |-
  |allow
  |bool
  |Whether or not to allow the flag grab
  |}

Latest revision as of 03:06, 5 November 2025