OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: The-Architect on 26 Jan 2005, 19:43:04
-
Can someone clear up this whole thing?
I have a trigger which is radio Hotel. When You hit 0-0-Hotel, it starts a script.
I want the radio message only to appear when I do a certain thing or get to a certain place. That's where setradiomsg comes in.
Only I have no idea what I'm doing. Anyone help? The ed depot is not helping me.
-
To hide a RadioMsg put this in your init, a trigger or a script:
X SetRadioMsg "NULL"where X is the desired radio channel. Alpha = 1, Bravo =2 etc.
Then use :
X SetRadioMsg "Your Text Here"to show it again. You could place the above code live in the On Activation field of another trigger.
-
Actually, radio triggers do a lot of the work for you. First off, the "text" field of the trigger will normally be displayed, unless you overwrite it with the setradiomsg command, so in most cases there is no need to use that command at all.
Even better, when a radio trigger is unable to be activated, it will AUTOMATICALLY hide that radio channel from the player. For example, if the condition in your radio trigger was:
this AND !(alive Enemy1)
Then the radio message would only be shown when Enemy1 was dead.
-
Even better, when a radio trigger is unable to be activated, it will AUTOMATICALLY hide that radio channel from the player. For example, if the condition in your radio trigger was:
this AND !(alive Enemy1)
Then the radio message would only be shown when Enemy1 was dead.
Negative. You won't be able to activate that radio trigger until Enemy1 is dead BUT the text appears in the command menu anyway (and on your radio, indeed).
To hide a radio triggers' text right away simply put "Null" in it's text field (without quotes). And then make it available whenever you want using the setRadioMsg command (just like Mr.Peanut said).
-
Negative. You won't be able to activate that radio trigger until Enemy1 is dead BUT the text appears in the command menu anyway (and on your radio, indeed).
Hmm.... testing it, you're right. I could have SWORN there were certain circumstances where the text would automatically change, but I guess that isn't it... Ah well, I guess I should check things out before I start speaking. :P
-
It's funny, I could have sworn the same. In fact I went off and tested it too.
Knowing OFP, myself and General Barron, I bet there ARE very particular cirumstances when this is the case. But so particular that we only hit upon them - once - by accident and will never find them again.
-
I would never swear on anything that's related to editing ofp, EVEN if I tested it. ;D