OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: AHMzzz on 23 Mar 2005, 09:35:18

Title: radio
Post by: AHMzzz on 23 Mar 2005, 09:35:18
Hi

I have 2 simple radio questions

1. If you have a squad leader with an assigned radio message that trrigers when the objective is done, how can you make his second in command (or so on) say it if the leader happens to die before the objectives are met?

2. How can you disable the radio chatter during a cut scene?. It realy kills the show ,you know , when you are watching soldiers being para dropped from a chopper then sombody says (( ALL, GET IN BMP))   ???.
Title: Re:radio
Post by: StonedSoldier on 23 Mar 2005, 09:58:31
1. explain a little more, i dont understand what scripting your using for this,

2. enableradio false
Title: Re:radio
Post by: Tomb on 23 Mar 2005, 10:05:40
if you use triggers to activate the radio msg, then ya can hit F2 and drag a grp line to the squad leader & select "grp leader" in the trigger's scroll-down menu.

So if the man himself gets shot, the next in line will be the grp leader and thus the one who activates the trigger :-*

hope U can sort it m8
Title: Re:radio
Post by: nominesine on 23 Mar 2005, 10:13:24
1) fire the radio message with this syntax:

leader myGroup sideRadio "myRadioMessage"; leader myGroup sideChat "bla, bla, bla, etc"

This will make the message come from the current leader, no matter who was leader at the start of the mission. Delete the sideRadio thing if you only use text and no sound. You also have to name the group with:

myGroup = GROUP this

in the init line of the original commander.

2) enableRadio true/false toggles the radio on and off.
Title: Re:radio
Post by: AHMzzz on 24 Mar 2005, 07:59:32
ok, sorry if my question was diffecult to understand.
But anyway I got it now thanks so much for the help.