OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bobthedinosaur on 15 Jan 2004, 21:25:16

Title: Hiding triggers until certain conditions are met
Post by: bobthedinosaur on 15 Jan 2004, 21:25:16
you know how you can make a trigger go off using the radio Alpha or beta or whatever command?

well i have two radio commands i wan't to use but one must only become available (in the player's radio box/screen) when certain conditions have been met like say a chopper has been filled with some infantry
the player looks in his radio menu and sees a new command "order choppers to launch"

how can i do this?

thanx
Title: Re:Hiding triggers until certain conditions are met
Post by: m21man on 15 Jan 2004, 21:27:45
In the init.sqs:
Code: [Select]
"1" setradiomsg "null".
Now when you want the message to become available, you can put:
Code: [Select]
"1" setradiomsg "Choppers - Take Off".
Title: Re:Hiding triggers until certain conditions are met
Post by: bobthedinosaur on 15 Jan 2004, 22:06:02
In the init.sqs:
Code: [Select]
"1" setradiomsg "null".

i tried putting that in my init.sqs in my mission folder but i get the error "error type string, expected number" when i play the mission

i'm very new to scripting so be gentle if you're gonna tell me to use external scripts and stuff

what does the "1" stand for in that line of code?
Title: Re:Hiding triggers until certain conditions are met
Post by: icarus_uk on 15 Jan 2004, 22:19:30
The 1 stands for the Alpha channel in the radio.  Bravo is 2, Charlie is 3 etc.
Title: Re:Hiding triggers until certain conditions are met
Post by: Tomb on 15 Jan 2004, 22:29:57
I bet 4 is "Dana" then  :)