OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: oyman on 17 May 2005, 01:57:26

Title: execute radio talk from a script
Post by: oyman on 17 May 2005, 01:57:26
I was wondering how to make radio messages execute from a script and put a 2 second pause between them. :)
Title: Re:execute radio talk from a script
Post by: Dubieman on 17 May 2005, 02:41:00
Well, you can just outright name your units, or assign variables/substitutes in there for them, but I find just leaving the name in makes debugging easier.

Man1
oymancopy

***************************
Man1 sidechat "oh my, oh my, I broke a nail, what to do..."
~2
oymancopy sidechat "You sod! Start shelling the enemy! I'm pinned down!"

*******************************

There's a few different radio types (vehiclechat, globalchat, etc) but I usually use sidechat.

Hope it helped,
GRK
Title: Re:execute radio talk from a script
Post by: Kundich on 17 May 2005, 03:14:27
I think it depends on whether you want sound files attached.  Are you looking to attach radio sounds also?  That's a bit more complicated, but not impossible.


Thanks,
ADM
Title: Re:execute radio talk from a script
Post by: Dubieman on 17 May 2005, 03:17:13
Well, you could just use:

***************************
Man1 sidechat "oh my, oh my, I broke a nail, what to do..."
playsound "nailgone"
~2
oymancopy sidechat "You sod! Start shelling the enemy! I'm pinned down!"
playsound "gaayou"

*******************************

Assuming you did everything right in the .ext.
Title: Re:execute radio talk from a script
Post by: Kundich on 17 May 2005, 13:23:01
That's true, but if you're messing with the EXT file, I would add a section for CfgRadio in the EXT.  It automatically plays your text, defined either in EXT or in CSV, and adds that nice little radio static to the sound.  It's pretty cool.  Again, not terribly difficult, but it does require a couple of steps.


Thanks,
ADM
Title: Re:execute radio talk from a script
Post by: oyman on 18 May 2005, 01:00:16
thanks guys, exactly what i was looking for ;D