supermegafernandator Posted July 1, 2010 Share Posted July 1, 2010 Hi i´m making a sp mod, I am using Icarus Behaved to make some scripts and I want to know if there is a way to play a music file, not the dinamic music state, something like when you are playing in single player and you put in the console music and the mp3 file do you want to play. I am using a mp map. Link to comment Share on other sites More sharing options...
nizwiz Posted July 2, 2010 Share Posted July 2, 2010 One way to do it is to add a target_play_music entity like this { "classname" "target_play_music" "targetname" "WhateverNameYouFancy" "music" "music/mymusic.mp3" "origin" "x y z" } and then do a use ( "WhateverNameYouFancy" ); from within the script. Don't know if there's a better way than that (probably so). Link to comment Share on other sites More sharing options...
supermegafernandator Posted July 2, 2010 Author Share Posted July 2, 2010 One way to do it is to add a target_play_music entity like this { "classname" "target_play_music" "targetname" "WhateverNameYouFancy" "music" "music/mymusic.mp3" "origin" "x y z" } and then do a use ( "WhateverNameYouFancy" ); from within the script. Don't know if there's a better way than that (probably so). Yes, but i mean only using Icarus Behaved, without modifying the map. Some type of code inside the script to run when you are ingame puting in the console runscript " " Link to comment Share on other sites More sharing options...
Didz93 Posted July 2, 2010 Share Posted July 2, 2010 I think the proper way to do it is like this: sound ( CHAN_MUSIC, "music/t1_sour/dealsour_action.mp3" ); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.