lfnetwork.com mark read register faq members calendar

Thread: Music help
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-01-2010, 04:45 PM   #1
supermegafernandator
Rookie
 
Join Date: Jul 2010
Posts: 10
Music help

Hi im 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.
supermegafernandator is offline   you may: quote & reply,
Old 07-01-2010, 09:42 PM   #2
nizwiz
Rookie
 
nizwiz's Avatar
 
Join Date: Jul 2007
Posts: 159
One way to do it is to add a target_play_music entity like this
Code:
{
    "classname" "target_play_music"
    "targetname" "WhateverNameYouFancy"
    "music" "music/mymusic.mp3"
    "origin" "x y z"
}
and then do a
Code:
use ( "WhateverNameYouFancy" );
from within the script. Don't know if there's a better way than that (probably so).
nizwiz is offline   you may: quote & reply,
Old 07-02-2010, 03:00 AM   #3
supermegafernandator
Rookie
 
Join Date: Jul 2010
Posts: 10
Quote:
Originally Posted by nizwiz View Post
One way to do it is to add a target_play_music entity like this
Code:
{
    "classname" "target_play_music"
    "targetname" "WhateverNameYouFancy"
    "music" "music/mymusic.mp3"
    "origin" "x y z"
}
and then do a
Code:
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 " "
supermegafernandator is offline   you may: quote & reply,
Old 07-02-2010, 05:28 AM   #4
Didz93
Lurker
 
Join Date: Sep 2009
Posts: 4
I think the proper way to do it is like this:
Code:
sound ( CHAN_MUSIC, "music/t1_sour/dealsour_action.mp3" );
Didz93 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Music help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:40 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.