Speaker function
Moderator: Moderators
-
Desert Eagle
- Captain
- Posts: 237
- Joined: Mon Jan 13, 2003 1:05 am
- Location: Mapping Bunker
- Contact:
Speaker function
In Radiant how does one put the sounds in a location. I understand the ubersound tut.
What I do not understand is how to put the sound in the map correctly. I would like to use the Tiger idling sound in MP Map, at a local location (local sound), do I use the speaker function in Radiant to place sound?
What I do not understand is how to put the sound in the map correctly. I would like to use the Tiger idling sound in MP Map, at a local location (local sound), do I use the speaker function in Radiant to place sound?
Desert-Eagle
....The Eagle Has Landed...
....The Eagle Has Landed...
Well usually the speaker isn't a trigger
.
Let's say you've got a trigger_multiple with targetname 'trigger' that has to trigger the sound generated by the script_model $speaker. If you want it to play every time the trigger is activated, a thread in your script would look like this:
Let's say you've got a trigger_multiple with targetname 'trigger' that has to trigger the sound generated by the script_model $speaker. If you want it to play every time the trigger is activated, a thread in your script would look like this:
Code: Select all
while(1)
{
$trigger waittill trigger
$speaker playsound mysound
wait 1.5 // length of sound file
}
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
but how?
but.. i'm a noob and i didn't uderstand the ambiente sound tut. and i read that it would not be good to place triggers for MP maps... till i heard of the speaker project!
how do i build this speaker? how do i target it 'fx\dummy.tik'? where do i code the part for the speaker to start playing? this is so complicated!
how do i build this speaker? how do i target it 'fx\dummy.tik'? where do i code the part for the speaker to start playing? this is so complicated!
Just select the object and press "n" and give it a "targetname" (key) of "xxx" (value). Then create a trigger multiple where you want the sound to be played. Then give it a setthread "speaker". In your script:
speaker: //the setthread value
$targetname playsound mysound //$targetname is the targetname you give your speaker
end
speaker: //the setthread value
$targetname playsound mysound //$targetname is the targetname you give your speaker
end
Live to map, not map to live.
-mohaa_rox, .map
moderator
-mohaa_rox, .map
moderator
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
sorry guys! i can't make this!
what do i put in the "$speaker1 playsound mysound" mysound parameter? is it the sound path? do i need to code anywhere else? i only coded my g2.scr (g2 is map name) and nothing more. i also make a speaker and i made it a "trigger_multiple" i added targetname "speaker1" and setthread "speaker" to it's "parms" (are they parameters?)
what do i put in the "$speaker1 playsound mysound" mysound parameter? is it the sound path? do i need to code anywhere else? i only coded my g2.scr (g2 is map name) and nothing more. i also make a speaker and i made it a "trigger_multiple" i added targetname "speaker1" and setthread "speaker" to it's "parms" (are they parameters?)
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
i'm desperate! can anyone malink me at a post a demo map? a pk3 with all it's needed to make a player hear a sound when he's near the object. like a square room with a speaker on it. when the playere gets near the speaker he herars the custom sound...
simple though? NOT!
please help me!
(pk3is no t necessary, only the .map and the .scr( i'd prefer this way so that i could analyze how you did that)) i'll compile it later
simple though? NOT!
please help me!
(pk3is no t necessary, only the .map and the .scr( i'd prefer this way so that i could analyze how you did that)) i'll compile it later
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
-
XKA Murdock
- Sergeant
- Posts: 59
- Joined: Wed Mar 12, 2003 7:28 pm
