Home   Help Search Login Register  

Author Topic: Separate east, west radio commands  (Read 1283 times)

0 Members and 2 Guests are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Separate east, west radio commands
« on: 19 Aug 2003, 12:55:48 »
Hello!

Does anyone know how to determine what side (east or west) can use which radio commands? If I for instance want "east" to be able to call in an airstrike but don't want "west" to be able to use the exact same radio command, what do I do?
Weeee...

polat

  • Guest
Re:Separate east, west radio commands
« Reply #1 on: 19 Aug 2003, 14:22:24 »
Use this:

westguy sidechat "Hi"  (Has to be an object from west)

eastguy sidechat "Hi" (Has to be an object from east)

 ;D

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Separate east, west radio commands
« Reply #2 on: 19 Aug 2003, 14:32:06 »
Yeah, but I don't intend to add any radio message, just something happening. Let's say that the command triggers a bomb to go off or something. How do you make that option available only for one side?
« Last Edit: 19 Aug 2003, 14:32:41 by Wildebeest »
Weeee...

Offline Mrc

  • Members
  • *
  • International man of mystery
Re:Separate east, west radio commands
« Reply #3 on: 19 Aug 2003, 21:47:01 »
Well, I think you should remove radio commands in init.sqs (or in a mission respectively), depending on player side.

Also because you can't determine who called the radio, you'll have to make West/East commands on separate channels (triggers).

Example:
Make two radio triggers Alpha and Bravo. Alpha will be for West and Bravo for East (as I said before, you'll have to use different channels)

Then put in Init.sqs

if ((side player)==East): then {1 SetRadioMsg "NULL"} else {2 SetRadioMsg "NULL"}

Try to play mission as East/West to ensure that it works, I've never tested it, but it should.

Of course, if you're enabling/disabling radio channels in mission, you'll have to do it relying on player's side again.

Hope it helps (...and works  :P)