ActionScript:ExternalCommands.GetValue

From Dragon Age Toolset Wiki
Revision as of 02:55, 16 December 2009 by FollowTheGourd (Talk | contribs) (cleanup sections. Need to provide a better example still.)

Jump to: navigation, search

A class method of the ExternalCommands ActionScript class.

Returns the requested attribute value from the game engine

GetValue(

a_sAttributeName

);

Parameters:
a_sAttributeName
The hierarchical attribute-string associated with the value to retrieve

Returns:
The requested attribute value from the game engine


Description

The attribute name is a string which has meaning to the game engine. It's typically hierarchical, using dots to separate the levels.

Examples

The following would return the gamma setting in the user's DragonAge.ini file.

ExternalCommands.GetValue("ClientOptions.VideoOptions.Gamma")

Known Issues

If the retrieved value is to be passed back to the game and is a number, you must instead use GetNumber or convert the value back into a Number type first.