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

From BZFlagWiki
Jump to navigation Jump to search
Created page with "{{BZFS_API_Doc}} {{BZFS_API_Funcs}} ==Prototype== BZF_API bool bz_shotHasMetaData (int fromPlayer, int shotID , const char* name); ==Parameters== {| border="1" cellpadding="20..."
 
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 bool bz_shotHasMetaData (int fromPlayer, int shotID , const char* name);
==Parameters==
{| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value desription
  |-
  |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
  |-
  |name
  |const char*
  |the name of the MetaData value to check
  |}
 
==Description==
This API function will return true if the specified shot exists and has data stored under the specified name.
 
==Notes==
Shot MetaData is useful for plug-ins that need to fake extra player shots with server based world weapons. Using MetaData a plug-in can store player or score information with the shot to be used later when the shot hits a target or expires. Shot MetaData is server side only and is unique to each shot fired. Multiple shots with the same ID over time will not contain the same data.

Latest revision as of 03:29, 25 November 2025