SetCustomPlayerValue

From Zandronum Wiki
Revision as of 14:59, 13 June 2023 by DrinkyBird (talk | contribs) (Created page with "{{ACSWarning}} {{DevfeatureWarning|version=3.2|type=an ACS function}} {{stub}} int '''SetCustomPlayerValue''' (str ''data'', int ''player'', mixed ''value'') {{Devfeature|3.2|alpha}} ==Usage== Changes the value of a player's data field for the scoreboard. ===Parameters=== * ''data'': The data field as defined in the GameInfo definition. * ''player'': The player number whose value will be changed. * ''value'': The new value of the da...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 SetCustomPlayerValue (str data, int player, mixed value) (development version 3.2-alpha and above only)

Usage

Changes the value of a player's data field for the scoreboard.

Parameters

  • data: The data field as defined in the GameInfo definition.
  • player: The player number whose value will be changed.
  • value: The new value of the data field.

Return value

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

Examples

This article lists no examples, please add one.