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

From BZFlagWiki
Jump to navigation Jump to search
Alezakos (talk | contribs)
add the new keepTeamFlags parameter
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 void bz_resetFlags ( bool onlyUnused, bool keepTeamFlags = false );
==Parameters==
{| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value description
  |-
  |onlyUnused
  |bool
  |only reset non-player flags
  |-
  |keepTeamFlags
  |bool
  |don't reset team flags (defaults to ''false'')
  |}
 
==Description==
This API function will force all flags to be reset and respawned. If the onlyUnused parameter is true, then flags carried by players will not be reset, otherwise all flags will be reset. If the keepTeamFlags parameter is true, then team flags will not be reset.

Latest revision as of 03:46, 10 November 2025