OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
In the init.sqs:
"1" setradiomsg "null".
Now when you want the message to become available, you can put:
"1" setradiomsg "Choppers - Take Off".
-
In the init.sqs: "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?
-
The 1 stands for the Alpha channel in the radio. Bravo is 2, Charlie is 3 etc.
-
I bet 4 is "Dana" then :)