OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tom on 15 Sep 2006, 06:13:51

Title: adding radio
Post by: Tom on 15 Sep 2006, 06:13:51
Is there anyway to add the radio thing into the mission at a certain point? For example:

When a shilka is destroyed, the "0-0-1" command thing appears so that the player can call in an airstrike.

Thanks in advance.
Title: Re: adding radio
Post by: Cheetah on 15 Sep 2006, 08:06:08
Use the setRadioMsg (http://www.ofpec.com/COMREF/index.php?action=list&letter=s#setRadioMsg) command to do this.
Title: Re: adding radio
Post by: Tom on 15 Sep 2006, 08:21:55
thank you :thumbsup:. If i may ask another question? Is there anyway to make a unit that is on a CYCLE waypoint, to move out to another waypoint when a trigger has been activated?
I tried going into the FAQ to find my answer, but it wasnt working  :confused:
And also, can the AI use that island airstrip on Malden to take of from (using planes of course). I tried it and he drove off into the sea.

Title: Re: adding radio
Post by: THobson on 15 Sep 2006, 08:45:06
Make the Trigger a Switch Trigger and synchronise it with the Cycle waypoint.  Once it is triggered the Waypoint after the Cylcle waypoint will become the active one.
Title: Re: adding radio
Post by: Tom on 15 Sep 2006, 08:47:19
Awesome! Thanks mate!
Title: Re: adding radio
Post by: macguba on 15 Sep 2006, 11:38:38
Tom, you are welcome to ask as many questions as you like.   :)

The island airstrip off Malden does not work for the AI.   There is a maximum of one working airstrip per map, and it must have a north-south runway.    You can make the AI take off from a non-working airstrip, or anywhere else for that matter, but it takes some serious scripting.

The FAQ is not working at the moment.   We had serious hardware failures a while back and we're still rebuilding the site.   Lots of things are still missing but never fear, we'll get them all back.    The good news is that the search function on this forum is much better than on the old forum, and all the old posts have been preserved.   Everything that was in the FAQ is on this forum ... although you can only find things if you know what to search for.    You'll find a lot of information on switch triggers now that you know what you're looking for. ;)
Title: Re: adding radio
Post by: Tom on 16 Sep 2006, 16:51:51
cool, keep up the awesome work. If it werent for this site and the incredibly helpful people here, i would never be the mission editor i would be today  :). I'm in the process of beta testing some of my maps in preparation for submission...my only question remaining is, how do you submit the zip file? I had a look at the other maps to see how they did it, but it was as if they had their own websites running them... Oh well..no rush.  :D
Title: Re: adding radio
Post by: Cheetah on 16 Sep 2006, 16:57:33
There's plenty of website where you can upload your mission, http://www.yousendit.com and http://www.rapidshare.de are the most popular ones.

If your mission is small enough (below 2mb) you can add it to your post. Take a look under "additional options..." and see if manage to attach a file.

When you think that your mission is ready, upload it to the beta board (http://www.ofpec.com/forum/index.php?board=23.0) and let the beta testers take a look at it. If the mission is bug free, add (review please) in the title of the thread.
Title: Re: adding radio
Post by: macguba on 16 Sep 2006, 17:21:46
Cheetah is right of course.    However, you can attach large files to your post on the Beta testing board.   Read the sticky topic on that board for new mission authors before you post - it'll save you a lot of grief.   ;)

Attachments other than things like missions or Ed Depot resources are limited to 100k.
Title: Re: adding radio
Post by: Tom on 16 Sep 2006, 19:50:08
i thank thee once more  :). I did read through the thread in the depot section, and i now have some insight into submission. After a few more beta tests on my missions, i will post them in for the testers to have a go at. Tomorrow though, its just a tad bit late right now (3:14am!)  :goodnight:
Title: Re: adding radio
Post by: Tom on 25 Sep 2006, 15:59:55
sorry to bring this back again, but i'm a little confused about the 'setradiomsg' command thing. I tried it, and it did nothing. Does it add the "0-0-1" option on the command menu? And also, when it does become active, how do i use the actual radio itself? I'm a wee bit lost with this one...
Title: Re: adding radio
Post by: macguba on 25 Sep 2006, 20:05:49
Yes.

Well, it's just 0-0-1 as you said.   The command sets up the radio channel:  when you use it with 0-0-x the On Activation field of the trigger is executed.

Make a test missionette and play with it.  ;)