OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: fishous on 01 Aug 2004, 15:00:44

Title: Radio talk
Post by: fishous on 01 Aug 2004, 15:00:44
Hey is there a easy way to make text come up as radio talk (Blue writting on the left of the screen) when triggers are activated or when AI units have completed waypoints.
Title: Re:Radio talk
Post by: macguba on 01 Aug 2004, 16:00:20
sideChat
groupChat
globalChat
Title: Re:Radio talk
Post by: GrimMonkey on 02 Aug 2004, 03:40:06
Or more specifically:

UnitName SideChat "Your Text Here"
UnitName GroupChat "Your Text Here"
UnitName GlobalChat "Your Text Here"

GroupChat and GlobalChat are only needed for MP missions. As a note, GlobalChat appears as gray text, not blue.


Beware the GrimMonkey
Title: Re:Radio talk
Post by: Dubieman on 02 Aug 2004, 16:17:35
vehicle chat is yellow, group chat is purple...

You can put it into a nice little script like here's one of my samples from my mission, and its called from a trigger when a unit leaves the little area...

Code: [Select]
spetz sidechat "Urgent news Dom, I can't link up with you at the old outpost. It seems some National Guardsmen have decided to take a break there."
~9
pilla SideChat "Okay, okay I'm sure we could go around them right?"
~7
spetz SideChat "No I don't think so, we should probably snuff them to be safe. Plus they have a radio."
~8
pilla SideChat "You better be right, I really don't want to get into a serious scrape so far from the target. We'll meet you there."
~8
spetz SideChat "Okay I'll take up an attack position, see you there."
exit

Of course you can mod the names, delays, and what they say too...

Also if you depbo a few BIS missions you will find that they use gamelogics with waypoints and delays to do radio or converstaions. If you wanna do that, there is a Gamelogic tut in the ed depot.
Title: Re:Radio talk
Post by: THobson on 02 Aug 2004, 18:42:40
If you want a message coming from a group that may be taking casualties use

Leader <groupname> sidechat

That way you will get a message from whichever unit is the leader of the group at the time.  If you specify a specific unit and that unit is dead you will not get the message
Title: Re:Radio talk
Post by: fishous on 03 Aug 2004, 20:34:34
Thanks alot everyone  :)
P.S how do you give a group a name
Title: Re:Radio talk
Post by: macguba on 03 Aug 2004, 20:40:41
In the init field of the group leader write

grpName = group this