Home   Help Search Login Register  

Author Topic: Problem With Custom Sounds In MP  (Read 1794 times)

0 Members and 2 Guests are viewing this topic.

LAPD

  • Guest
Problem With Custom Sounds In MP
« on: 13 Mar 2003, 23:38:07 »
I know how to do the sounds. They play very well.
The problem is that the leader of the squad is saying them on the radio. If no one chose to play as the group leader (and cancel the AI), the sounds won't be played.

How can I do that if IlanI (the group leader) is not presented (which means, he dosen't exist cause no one chosed him or he died), IlanII will say the radio message, and if IlanII dosen't exist, then IlanIII will say the radio message.

Also, I use the sidechat command so it will be written on screen.
So if IlanI is dead and IlanII will say the message, in the sidechat command it will be written that IlanII said that.
Like this:

Quote
IlanII sideradio "bla"
IlanII sidechat "bla"

I tried the stringtable.csv but it dosen't work for some reason.
Any way I can do this?

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Problem With Custom Sounds In MP
« Reply #1 on: 14 Mar 2003, 00:51:08 »
That one's allready in the editing FAQ.

http://www.ofpec.com/editors/script_view.php?id=67

"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

LAPD

  • Guest
Re:Problem With Custom Sounds In MP
« Reply #2 on: 14 Mar 2003, 13:54:00 »
Working great  :)

Thanks  :thumbsup:

LAPD

  • Guest
Re:Problem With Custom Sounds In MP
« Reply #3 on: 14 Mar 2003, 18:06:39 »
Sorry for unlocking this topic.
I tested it with the preview option in the mission editor but not actually in MP.
Then, i tried it in MP and I chose number 2 in the squad (after the leader) and canceled the AI.
The sounds didn't work. I think it is still counting number 1 when actually no one chose to play it.
What you said is good if the leader dies, but not if no one chose to play the leader (and cancel the AI).

But thanks anyway  :)

Any other ideas?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Problem With Custom Sounds In MP
« Reply #4 on: 15 Mar 2003, 11:32:32 »
You just need to start to think for yourself a little bit.

If you define the group inside the leader's init field by:

group1 = group this

Then the groupname will only exist if this unit is present
at the start of the game.

If there's the possibility to keep this unit out of the game
right from start, then you need to change your approach
to get the groupname defined.

What i'm doing in mp maps is:

I'm using a trigger, covering the whole group;

e.g: range: 30/30

west/present/once
condition: this

onactivation: group1 = group thislist select 0

Using that method you will always get your groupname
defined.

~S~ CD
« Last Edit: 15 Mar 2003, 11:33:12 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

LAPD

  • Guest
Re:Problem With Custom Sounds In MP
« Reply #5 on: 15 Mar 2003, 13:45:52 »
Thanks. But this:

Code: [Select]
group1 = group thislist select 0
dosen't work. It says: select: Type Group, expected Array.

What is the right method?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Problem With Custom Sounds In MP
« Reply #6 on: 15 Mar 2003, 17:39:34 »
hmm - It should work


OK - let's try it by a work around.


w1 = thislist select 0; group1 = group w1

Now this must work, as i'm using exactly that code in
my Trip2Hell part III (available in the missions depot/mp missions, if you want to check it for functionality of the code).

lol looks like advertisement now  ;D

Just replace w1 with the name, you want to give your leader
unit, or let it be w1.

If you want to check, that w1 is defined correctly, just use
in the same onActivation field: w1 sidechat "hell i got the name
w1" - and you can do the same with the groupleader.

:note - off course the sidechat must be after you defined w1:

w1 = thislist select 0; group1 = group w1; w1 sidechat "blabla";
leader group1 sidechat "blablabla"

If this still doesn't work, you need to check the trigger settings.

btw - the trigger needs to be activated by west only in case
you want to name a west group - and also there shouldn't
be other groups or vehicles inside the trigger area.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

LAPD

  • Guest
Re:Problem With Custom Sounds In MP
« Reply #7 on: 15 Mar 2003, 18:08:11 »
It works!

I used this code:
Code: [Select]
group1 = thislist select 0
Just removed the "group" after the =.

Thanks all. :thumbsup:

Topic solved :-*.