Home   Help Search Login Register  

Author Topic: Radio Suggestion  (Read 466 times)

0 Members and 1 Guest are viewing this topic.

Popoi

  • Guest
Radio Suggestion
« on: 20 Feb 2005, 03:16:12 »
Hey all.

I dunno if this has been discussed before, and all you smartypants probably already figured it out. But in case you never thought about it, here's a suggestion for having a very flexible radio panel.

1) in your OpFp Editor, add a trigger for each radio channel (alpha through Juliet)
2) For OnActivation use RADIO_ALPHA_PARAM exec RADIO_ALPHA. (Naturally, change ALPHA to correspond with the radio channel)
3) In INIT.SQS add the following stuff
Code: [Select]
;; Radio Shenanigans
RADIO_ALPHA         = "test.sqs"
RADIO_ALPHA_PARAM   = [GetPos QuarterMasterBill, "LOL!"]
RADIO_BRAVO         = ""
RADIO_BRAVO_PARAM   = ""
RADIO_CHARLIE      = ""
RADIO_CHARLIE_PARAM   = ""
RADIO_DELTA         = ""
RADIO_DELTA_PARAM   = ""
RADIO_ECHO         = ""
RADIO_ECHO_PARAM   = ""
RADIO_FOXTROT      = ""
RADIO_FOXTROT_PARAM   = ""
RADIO_GOLF         = ""
RADIO_GOLF_PARAM   = ""
RADIO_HOTEL         = ""
RADIO_HOTEL_PARAM   = ""
RADIO_INDIA         = ""
RADIO_INDIA_PARAM   = ""
RADIO_JULIET      = ""
RADIO_JULIET_PARAM   = ""

4) Create the file "test.sqs"  and do whatever you want as a response to the radio command.


The cool thing with this is that now you can change RADIO_X and RADIO_X_PARAM during your mission to make your radio behave completely different with great ease.


Happy Scripting!
« Last Edit: 20 Feb 2005, 08:03:57 by Popoi »