Arma 3 Scripting

BIS_fnc_dbValueSet

  • Arma 3 v0.50
  • First in Take On Helicopters v1.00

Function · Markdown · JSON · original wiki page

Description

Add value to Scripted Database. If the provided path does not exist it is created, otherwise the value is overwritten. The passed array gets modified.

Syntax

[database, path, newvalue] call BIS_fnc_dbValueSet

Parameters:

Returns: Boolean - True if value was added

Examples

Example 1

private _db = ["#MILLER", ["&KILLS", 1000, "&RANK", "CAPTAIN"]];
[_db, ["miller","kills"],200] call BIS_fnc_dbValueSet;
_db // ["#MILLER",["&KILLS",200,"&RANK","CAPTAIN"]]

Example 2

private _db = ["#MILLER", ["&KILLS", 1000, "&RANK", "CAPTAIN"]];
[_db, ["miller","iq"],200] call BIS_fnc_dbValueSet;
_db // ["#MILLER",["&KILLS",1000,"&RANK","CAPTAIN","&IQ",200]]

See also

BIS_fnc_dbClassCheck · BIS_fnc_dbClassId · BIS_fnc_dbClassIndex · BIS_fnc_dbClassList · BIS_fnc_dbClassRemove · BIS_fnc_dbClassReturn · BIS_fnc_dbClassSet · BIS_fnc_dbConfigPath · BIS_fnc_dbImportConfig · BIS_fnc_dbImportXML · BIS_fnc_dbisClass · BIS_fnc_dbisValue · BIS_fnc_dbPrint · BIS_fnc_dbSymbolClass · BIS_fnc_dbSymbolValue · BIS_fnc_dbValueCheck · BIS_fnc_dbValueId · BIS_fnc_dbValueIndex · BIS_fnc_dbValueList · BIS_fnc_dbValueRemove · BIS_fnc_dbValueReturn