Home   Help Search Login Register  

Author Topic: Sound Script  (Read 972 times)

0 Members and 1 Guest are viewing this topic.

Offline Nixer6

  • Members
  • *
Sound Script
« on: 24 Sep 2004, 21:08:45 »
I've searched here and the editors depot.

I am Sure that I saw a script that would

1.  Allow you to play music or a sound from a distant object

for example. I see any enemy squad and can hear them chattering but the sound is distant and comes from them, not right next to me.

Or, you walk by a radio and the music gets louder as you approach and softer as you depart.

Any help would be appreciated :)
Why do I have to be a Rocket Scientist to make a good mission?

DBR_ONIX

  • Guest
Re:Sound Script
« Reply #1 on: 24 Sep 2004, 21:34:35 »
Unitname say soundname
::)
- Ben

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Sound Script
« Reply #2 on: 25 Sep 2004, 05:12:36 »
I dont know about music but if you put a man from any side a distance away from you and set a trigger over him that will go off as soon as the mission starts and in the trigger go to efects and pick an anonomus sound or one of the sayings and start the game u will here the sound u put in the distance unless it is too far away if it is a continuous soung like the dog or bird noises walk twords it and it will get louder.
ok lets say: place an east  soldier a distance away drag the ammo bar to none so he wont shoot you then put a trigger set the size to 5 and 5 and activation to east go under effects set nightinggale. on start the mission and walk twords the noise it will get louder.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Sound Script
« Reply #3 on: 25 Sep 2004, 13:18:31 »
penguinman is right about the trigger.   However, you don't need to go through all that rigmarole with the unit.    Simply write

true

in the Condition field.
Plenty of reviewed ArmA missions for you to play

Offline Nixer6

  • Members
  • *
Re:Sound Script
« Reply #4 on: 25 Sep 2004, 19:49:02 »
I have been using triggers. If it's music it sounds the same if you are right next to it or if you are a mile away ???

Maybe sounds are treated differently than music?

I still think I saw a script that would allow you play sounds and music from a distance.

Thanks all for the info :)
Why do I have to be a Rocket Scientist to make a good mission?

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Sound Script
« Reply #5 on: 26 Sep 2004, 01:38:03 »
The "script" you are talking about, is the "say" command, like DBR_ONIX said. There are three different 'sound' commands in OFP:

object say "soundname"   ->   makes the sound come from the object; stereo effect is heard
playsound "soundname"   ->   plays the sound at a fixed volume, no stereo effects
playmusic "musicname"     ->   same as playsound, only the music is defined differently in your description.ext, and can be better quality/stereo

You should grab bloodmixers sound tutorial from the ed depot. That will show you everything you want to know about sounds, and explain everything you don't understand about what I just said. ;)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Nixer6

  • Members
  • *
Re:Sound Script
« Reply #6 on: 27 Sep 2004, 07:36:03 »
Thanks Herr General :)

Appreciate it.
Why do I have to be a Rocket Scientist to make a good mission?

Offline Nixer6

  • Members
  • *
Re:Sound Script
« Reply #7 on: 27 Sep 2004, 20:49:36 »
OK, I am not going nuts (nuttier)

There is an example script in the pending section in the editors depot. ;D

Learned more here also. Thanks all.
Why do I have to be a Rocket Scientist to make a good mission?