Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:1.54

Description

Description:

Sets the value of a dynamically modifiable

config

configuration parameter.

Modifiable parameters are only available for CfgVehicles classes, and are limited to the ones returned by getRegisteredParams.

They exist in parallel to the regular

config

configuration entries, and

will

do not change what is returned by regular

config

configuration reads (

e.g.

for example, getNumber), but the engine

will use these

uses these, instead of the standard ones, when it comes to vehicle performance and some other situations (

e.g.

for example, friendly tags).

Parameters set this way are only reset, when a new mission is loaded or cleared in the editor, or

via

using the resetAllRegisteredParams command.

 The main purpose of these dynamic parameters is testing and tuning of vehicles.

Syntax

Syntax:type setRegisteredParam [config, value]
Parameters:
  • type: String - Class whose configuration should be changed.
  • config: String - Name of
config
  • configuration parameter to change (case-sensitive).
  • value: String, Number or Boolean - New value to be applied.
Return Value:Nothing

Examples

Examples:
"VBS2_AU_Army_MRH90_W" setRegisteredParam ["disableAutoEject",false]
;
"VBS2_US_ARMY_M1114_D_X" setRegisteredParam ["maxFordingDepth",1]
;

Additional Information

See also: getRegisteredParam, getRegisteredParams, resetAllRegisteredParams
Multiplayer:MP behavior is unsupported and undefined.
Problems:
 

Notes