OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Chris330 on 22 Apr 2005, 20:57:19
-
Dear All,
I need to be able to hide the radio for most of my mission until the player is ready to call in artillery.
BUT...
I cannot get the showradio command to work properly. I have a radio alpha trigger set up. I have tried setting showradio = 0 and showradio false in both the description.ext and init.sqs files along with radio triggers and init lines of units. But the radio always shows even when I export the mission to a single mission!!
So what the Hell is going on? Is it possible to hide the radio when you have declared a radio trigger ???
All help appreciated ;)
-
Found this in FAQ Search-- Looks like you cannt hide radio but ya can hide the text to click on.
Submitted by:
Credits: LCD
How to hide, unhide, and set the text in a radio trigger.
--------------------------------------------------------------------------------
Question:
I want to get rid of the Radio Alpha text until a specific time in the mission. I have a car bomb script that is activated by the Radio Alpha trigger.
[t1] exec "carbomb.sqs"
So when the player selects RADIO ALPHA (which has the text of "Kill the Buggers!") the carbomb script activates.
Another trigger makes the script set to false - so the player cannot activate the script until it is set to true.
How do I hide the text from the Radio Menu until it is actually required?
Answer:
In the text part of the triger put:
null
When you want the text to appear, put:
1 setradiomsg "mytext" ("mytext" being the text that you want to appear)
When you want it to disapear again put:
1 setradiomsg "null"
See the setradiomsg command for more info on this.
--------------------------------------------------------------------------------
Submitted on: September 08, 2003, 09:39
Hope that helped.
-
showRadio=true/false only shows/hides the radio('phone') which is on the map screen...