OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Mandoble on 12 May 2007, 22:17:58
-
A quick and easy way to test all ArmA musics, and a lovely moonlight :)
Ready to use from the editor.
-
Nice script, could be added to some maps where a lot of driving is required.
It's ashame you can't drive while its up but I think you've already asked about it. It's the only let down and it would be nice if you found a solution for it.
Good work (again..) :good:
-
It looks like it uses all the default "music" set in the game... is there any way we can get a version where there's an actual "playlist"...
Why? I'd rather stack it with a bunch of custom tunes and now have to have such a long list cluttered with the default boring game music in there also.
-
To do that you need to change mando_showplayer.sqf
This is the code that fills up the list
_cfg =(configFile >> "CfgMusic");
_count = count _cfg;
for [{_i = 1},{_i < _count},{_i = _i + 1}] do
{
_cfgi = _cfg select _i;
_index = _list lbAdd (getText (_cfgi >> "Name"));
_list lbSetData [_index, format["%1", configName _cfgi]];
};
you may change it by:
_index = _list lbAdd ("Mi preferred track tittle 1");
_index = _list lbSetData ("Mi preferred track resource name 1");
_index = _list lbAdd ("Mi preferred track tittle 2");
_index = _list lbSetData ("Mi preferred track resource name 2");
_index = _list lbAdd ("Mi preferred track tittle 3");
_index = _list lbSetData ("Mi preferred track resource name 3");
...