OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Javito on 17 Aug 2006, 20:34:00
-
I would like the player to decide the course of action of another unit depending upon whether he selects radio alpha or bravo (and I've renamed these using the setradiomsg command). I know I could just set a trigger in-game but I A) Do not want it to be visible from the outset and B) Depending upon the players actions/successes he may never need to make this choice, thus it must be activated only if a certain set of conditions are met.
So to that end I'm wondering if I can do it all in a script. Can I do that? Activate radio alpha and bravo, rename them, have the player select one option and then have the other disappear? Specifically, the player is deciding whether or not a character may join his squad on an attack. Is it something similar to the ? command or is it more intricate? Is this even possible?
-
It's not only possible it's easy.
At the start of the mission, for example in your init.sqs, use setRadioMsg "null". Then use the appropriate setRadioMsg commands later in the mission to make the right things appear. And null again (in the On Activation field of the radio trigger) to make them disappear.them disappear.