supermegafernandator Posted July 1, 2010 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.
nizwiz Posted July 2, 2010 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).
supermegafernandator Posted July 2, 2010 Author 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 " "
Didz93 Posted July 2, 2010 Posted July 2, 2010 I think the proper way to do it is like this: sound ( CHAN_MUSIC, "music/t1_sour/dealsour_action.mp3" );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.