OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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. :)
-
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
-
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
-
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.
-
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
-
thanks guys, exactly what i was looking for ;D