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

From BZFlagWiki
Jump to navigation Jump to search
Created page with "{{BZFS_API_Doc}} {{BZFS_API_Funcs}} ==Prototype== BZF_API uint32_t bz_getShotGUID (int fromPlayer, int shotID); ==Parameters== {| border="1" cellpadding="20" cellspacing="0" ..."
 
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Funcs}}
==Prototype==
BZF_API uint32_t bz_getShotGUID (int fromPlayer, int shotID);
 
==Parameters==
{| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |fromPlayer
  |int
  |the player who owns the shot, BZ_SERVER for world weapons
  |-
  |shotID
  |int
  |the local ID of the shot for the specified player
  |}
 
==Description==
This API function will return the Globally Unique Identifier(GUID) for the specified shot if it exists, or 0 if it does not.
 
==Notes==
Shot GUIDs are unique to each shot fired (within a range of over 4 billion shots fired per server session). This ID can be useful to detect unique shots independent of player reload timers.

Latest revision as of 01:23, 26 November 2025