ResetCustomDataToDefault: Difference between revisions

From Zandronum Wiki
(Created page with "{{ACSWarning}} {{DevfeatureWarning|version=3.2|type=an ACS function}} {{stub}} int '''ResetCustomDataToDefault''' (str ''data'', int ''player'', mixed ''value'') {{Devfeature|3.2|alpha}} ==Usage== Resets the value of a player's data field for the scoreboard back to its default value. ===Parameters=== * ''data'': The data field as defined in the GameInfo definition. * ''player'': The player number to reset the data for. ===Return va...")
Tag: Source edit
 
m (Very minor word change.)
Tag: Source edit
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{stub}}
{{stub}}


int '''ResetCustomDataToDefault''' (str ''data'', int ''player'', mixed ''value'') {{Devfeature|3.2|alpha}}
int '''ResetCustomDataToDefault''' (str ''data'', int ''player'') {{Devfeature|3.2|alpha}}


==Usage==
==Usage==
Line 10: Line 10:
===Parameters===
===Parameters===
* ''data'': The data field as defined in [[MAPINFO#GameInfo definition|the GameInfo definition]].
* ''data'': The data field as defined in [[MAPINFO#GameInfo definition|the GameInfo definition]].
* ''player'': The player number to reset the data for.
* ''player'': The player number to reset the data for. Use -1 to reset for all players instead.


===Return value===
===Return value===

Latest revision as of 02:18, 14 June 2023

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.
This article documents an ACS function which is only available in development builds of Zandronum 3.2 and newer.
This article or section is a stub. You can help the Zandronum wiki by adding to it.

int ResetCustomDataToDefault (str data, int player) (development version 3.2-alpha and above only)

Usage

Resets the value of a player's data field for the scoreboard back to its default value.

Parameters

  • data: The data field as defined in the GameInfo definition.
  • player: The player number to reset the data for. Use -1 to reset for all players instead.

Return value

Returns 1 if the field and player exist, 0 otherwise.

Examples

This article lists no examples, please add one.