Home   Help Search Login Register  

Author Topic: execute radio talk from a script  (Read 803 times)

0 Members and 1 Guest are viewing this topic.

Offline oyman

  • Members
  • *
  • king of pings
execute radio talk from a script
« 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. :)

Dubieman

  • Guest
Re:execute radio talk from a script
« Reply #1 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

Offline Kundich

  • Members
  • *
  • "Habit is the daily battleground of character."
Re:execute radio talk from a script
« Reply #2 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

Dubieman

  • Guest
Re:execute radio talk from a script
« Reply #3 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.

Offline Kundich

  • Members
  • *
  • "Habit is the daily battleground of character."
Re:execute radio talk from a script
« Reply #4 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

Offline oyman

  • Members
  • *
  • king of pings
Re:execute radio talk from a script
« Reply #5 on: 18 May 2005, 01:00:16 »
thanks guys, exactly what i was looking for ;D