Jump to content
Sign in to follow this  
kadinx

Display the Title of a a custom music

Recommended Posts

I have added and playing successfully music on my custom endings of my missions.

I need to display the "Name" of the song as it is shown under "name" in the Description.ext entries.

for example: I have this entry under my class CfgMusic

class Southbound_Again_Dire_Straights
{
name = "Southbound Again by Dire Straights";
sound[] = {"\music\Southbound_Again_Dire_Straights.ogg", db+0, 1.0};
};

I need to show on screen "Soundbound Again by Dire Straights"

I have successfully managed to show "Southbound_Again_Dire_Straights" which is the class name. Is there a certain command that would display the NAME of the song as opposed to the CLASS name of the song?

Share this post


Link to post
Share on other sites

[color="#FF8040"][color="#191970"][b]getText[/b][/color] [color="#8B3E2F"][b]([/b][/color][color="#191970"][b]missionConfigFile[/b][/color] [color="#8B3E2F"][b]>[/b][/color][color="#8B3E2F"][b]>[/b][/color] [color="#7A7A7A"]"CfgMusic"[/color] [color="#8B3E2F"][b]>[/b][/color][color="#8B3E2F"][b]>[/b][/color] [color="#1874CD"]_musicClass[/color] [color="#8B3E2F"][b]>[/b][/color][color="#8B3E2F"][b]>[/b][/color] [color="#7A7A7A"]"name"[/color][color="#8B3E2F"][b])[/b][/color][color="#8B3E2F"][b];[/b][/color][/color]

Made with KK's SQF to BBCode Converter

should do

Share this post


Link to post
Share on other sites

Like A.Cyprus says do a getText

_brummies = getText(missionConfigFile / "CfgMusic" / "Southbound_Again_Dire_Straights" / "name");

Untested but it should do it.

Share this post


Link to post
Share on other sites

Here is what I got:

-A response within 15 minutes

-A Perfect solution to my quest

-New knowledge that I could use to further my Arma creation :)

Guys you are GOLDEN.

Much appreciation and ...respek ;)

Edited by KadinX

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×