Skip to Content

bz_getShotGUID()

Available since 2.4.4

Get the globally unique identifier (GUID) for the specified shot.

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.

Usage

uint32_t bz_getShotGUID(int fromPlayer, int shotID)
Parameters
int fromPlayer

The player ID who fired the shot

int shotID

The local shot ID relative to the player

Returns

uint32_t - The GUID for the shot; 0 if the shot does not exist

Other Shot Management Functions

Back to bzfs API Functions

This content is maintained on GitHub. We welcome any feedback and improvements!

Give us Feedback Edit this Page