OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Wildebeest 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?
-
Use this:
westguy sidechat "Hi" (Has to be an object from west)
eastguy sidechat "Hi" (Has to be an object from east)
;D
-
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?
-
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)