I would like to dynamically apply a path in a Description.EXT class attributes having defined that path in a #define statement in the Description.ext. structure
Specifically I need to be able to apply a variable as part of a string path for cfgRadio sounds
I have tried various configurations of __EXEC and __EVAL statements, but all to no avail
Example
_strSHOT = __EVAL("(TX_ACTION_CORE) + 'Sounds\secop_artillery_30.wss'" );
sound[] = {_strSHOT, db +0, 1.0};
Here is a cut down code example as it stands now
// DESCRIPTION.EXT
#define TX_ACTION_CORE "Tx_Actions\"
#define TX_ACTION_USER "Tx_UserSetup\"
class Tx_Actions
{
Path_SetupFolder = TX_ACTION_USER; // Used to get a dynamic path for scripts
Path_CoreFolder = TX_ACTION_CORE; // Used to get a dynamic path for scripts
// class Tx_Arty
// {
// Irrelevant code
// };
};
class Cfgradio
{
sounds[] =
{
Tx_arty_shot,
};
class Tx_arty_shot
{
name = "Tx_arty_shot";
sound[] = { "Tx_actions\sounds\secop_artillery_30.wss", db +0, 1.0};
title = " << ARTY >> Shot !!!!";
};
};
So I would be greatly appreciative if someone could supply me with a working example of how best to do this...
Thanks in advance