Jump to content

Home

Music help


supermegafernandator

Recommended Posts

Posted

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.

Posted

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).

Posted
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 " "

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...